Changed operator T enable_if to be more closely linked to the variant
authorErich Keane <erich.keane@intel.com>
Tue, 3 Nov 2015 17:53:42 +0000 (09:53 -0800)
committerHabib Virji <habib.virji@samsung.com>
Wed, 4 Nov 2015 21:08:27 +0000 (21:08 +0000)
commit6f02493b568893feb27ae3345019d24ca43a1131
treefb25bd66644eff0ab359b42c5dc28a74c7fdcbde
parent8a9f7dde16d43b1795be466c6deeb60f442c148e
Changed operator T enable_if to be more closely linked to the variant

The link between the variant and the enable_if needs to be strong!
Previously, there was no direct link, just one by 'coincidence'.  This
patch introduces a pair of type traits that bind the enable_if directly
to the variant.  Note that the type traits also work with ANY variadic
type!

Change-Id: Ie5f8fbc92b4f6800625c58fd73c08bedf147f122
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/4021
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/include/OCRepresentation.h
resource/include/OCUtilities.h