Fixed LazyList erratum
[libcds.git] / cds / intrusive / impl / lazy_list.h
index abe6ef4c4b2d8b07ec349d6b87b18bba3e9e31b7..845362ae13e15b522b15fd54c122273a6af5c092 100644 (file)
@@ -222,6 +222,10 @@ namespace cds { namespace intrusive {
                 , typename cds::opt::make_options< traits, Options...>::type
             > type;
         };
+
+        // Stat selector
+        template <typename Stat>
+        using select_stat_wrapper = lazy_list::select_stat_wrapper< Stat >;
         //@endcond
 
     protected:
@@ -1256,7 +1260,7 @@ namespace cds { namespace intrusive {
             }
 
             m_Stat.onValidationFailed();
-            return true;
+            return false;
         }
 
         static bool validate_link( node_type * pPred, node_type * pCur ) CDS_NOEXCEPT