Fixed template syntax to prevent ambiguity with stream operators
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 4 Mar 2016 16:06:32 +0000 (17:06 +0100)
committerHabib Virji <habib.virji@samsung.com>
Tue, 22 Mar 2016 10:56:34 +0000 (10:56 +0000)
This is a minor change but was noticed when trying to build with clang

This message appeared while building using tizen-sdk 2.4.0 Rev4
with imported libs (built with gbs from Tizen:2.4:Mobile repo)

Change-Id: Ib573d5ea9b23b29d6114d1f072210c370859fdec
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6149
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/include/OCUtilities.h

index ac9d6ad..1c17c10 100644 (file)
@@ -106,7 +106,7 @@ namespace OC
     template<typename T>
     struct is_vector<T,
         typename std::enable_if<
-            std::is_same<T, std::vector<typename T::value_type, typename T::allocator_type>>::value
+            std::is_same<T, std::vector<typename T::value_type, typename T::allocator_type> >::value
         >::type
     >
     {
@@ -130,17 +130,17 @@ namespace OC
 
     // specialization to handle the single-item case
     template<typename ToTest, template <typename...> class Base, typename T>
-    struct is_component<ToTest, Base<T>>
+    struct is_component<ToTest, Base<T> >
     {
         static constexpr bool value = std::is_same<ToTest, T>::value;
     };
 
     // Recursive specialization to handle cases with multiple values
     template<typename ToTest, template <typename...> class Base, typename T, typename ...Rest>
-    struct is_component<ToTest, Base<T, Rest...>>
+    struct is_component<ToTest, Base<T, Rest...> >
     {
         static constexpr bool value = std::is_same<ToTest, T>::value
-            || is_component<ToTest, Base<Rest...>>::value;
+            || is_component<ToTest, Base<Rest...> >::value;
     };
 } // namespace OC