Changed algorithm of IterableList detecting
[libcds.git] / cds / intrusive / details / base.h
index 4e2b156a269031691022b756240edb21158f1c09..e088ac5a8becc42d92c4fbed9b96d7f2cf2f389b 100644 (file)
@@ -325,12 +325,12 @@ namespace intrusive {
     */
 
     //@cond
+    class iterable_list_tag
+    {};
+
     template <typename List>
-    struct is_iterable_list {
-        enum {
-            value = false
-        };
-    };
+    struct is_iterable_list: public std::is_base_of< iterable_list_tag, List>
+    {};
     //@endcond
 
 }} // namespace cds::intrusuve