Преглед изворни кода

Merge pull request #49 from mapleFU/add-std

Add std:: in code samples
Zihan Chen пре 5 година
родитељ
комит
a7457147a6
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      ReadMe.md

+ 2 - 2
ReadMe.md

@@ -2384,7 +2384,7 @@ template <typename T> void inc_counter(T& intTypeCounter);
 template <typename T> void inc_counter(
   T& counterObj, 
   typename std::enable_if<
-    is_base_of<T, ICounter>::value
+    std::is_base_of<ICounter, T>::value
   >::type* = nullptr );
 
 template <typename T> void inc_counter(
@@ -2558,7 +2558,7 @@ template <typename ArgT>
 void foo(
   ArgT&& a, 
   typename std::enabled_if<
-    is_same<std::decay_t<ArgT>, float>::value
+    std::is_same<std::decay_t<ArgT>, float>::value
   >::type* = nullptr
 );
 ```