From: coderhyme Date: Wed, 17 Jun 2015 05:32:27 +0000 (+0900) Subject: Fix minor bug of isTypeOf method of ResourceAttributes X-Git-Tag: 1.2.0+RC1~1430^2~131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de2c9db8420a3041abb5755370e92559a9eea740;p=platform%2Fupstream%2Fiotivity.git Fix minor bug of isTypeOf method of ResourceAttributes Change-Id: I3dea89be5e76b8b022837418e7cf181a985de413 Signed-off-by: coderhyme Reviewed-on: https://gerrit.iotivity.org/gerrit/1293 Reviewed-by: Hun-je Yeon Reviewed-by: Uze Choi Tested-by: Uze Choi --- diff --git a/service/basis/common/primitiveResource/include/ResourceAttributes.h b/service/basis/common/primitiveResource/include/ResourceAttributes.h index f330d91..5ea16f6 100755 --- a/service/basis/common/primitiveResource/include/ResourceAttributes.h +++ b/service/basis/common/primitiveResource/include/ResourceAttributes.h @@ -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;