Fix minor bug of isTypeOf method of ResourceAttributes
authorcoderhyme <jhyo.kim@samsung.com>
Wed, 17 Jun 2015 05:32:27 +0000 (14:32 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 17 Jun 2015 09:00:25 +0000 (09:00 +0000)
Change-Id: I3dea89be5e76b8b022837418e7cf181a985de413
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1293
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/basis/common/primitiveResource/include/ResourceAttributes.h

index f330d91..5ea16f6 100755 (executable)
@@ -133,7 +133,7 @@ public:
         template< typename T, enable_if_supported< T >* = nullptr >
         bool isTypeOf() const
         {
-            using iter = boost::mpl::find< ValueVariant::types, int >::type;
+            using iter = typename boost::mpl::find< ValueVariant::types, T >::type;
 
             return m_data->which()
                     == boost::mpl::distance< mpl_begin< ValueVariant::types >, iter >::value;