Fixed the checked_guard/nil_guard to pass by reference
authorErich Keane <erich.keane@intel.com>
Mon, 3 Aug 2015 18:40:57 +0000 (11:40 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Wed, 5 Aug 2015 19:49:24 +0000 (19:49 +0000)
commitcb13e0786a4f47ce30ab683726bb210f81d5a038
treee4fcf0d5a6e63e82dbb66fbc1ea9b999cb722378
parent7b5f15462e757862ac962a6137cbdac367db074f
Fixed the checked_guard/nil_guard to pass by reference

This fix should allow checked_guard to properly pass by
reference rather than pulling everything out to a copy.  This
should ensure that out parameters are possible in the C++ stack,
though still extremely discouraged.

Change-Id: Ide35e9eb7adbdd532f375f341286387a641e8436
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2087
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/include/OCUtilities.h