Issue #23: removed std::random_shuffle from tests
authorkhizmax <libcds.dev@gmail.com>
Thu, 9 Apr 2015 20:18:24 +0000 (23:18 +0300)
committerkhizmax <libcds.dev@gmail.com>
Thu, 9 Apr 2015 20:18:24 +0000 (23:18 +0300)
tests/cppunit/cppunit_mini.h
tests/test-hdr/priority_queue/hdr_intrusive_pqueue.h

index 9e88bae985e3feb79627112de997438b4940612a..56e1897e8abebc50829016b2e88d908b772f983d 100644 (file)
@@ -196,7 +196,7 @@ namespace CppUnitMini
     static std::vector<std::string> const&    getTestStrings();
 
     template <typename RandomIt>
-    void shuffle( RandomIt first, RandomIt last )
+    static void shuffle( RandomIt first, RandomIt last )
     {
         std::shuffle( first, last, m_RandomGen );
     }
index 7824fdbcfb5372b7caaf6af387ff8bda613051ed..2f3779d0d65e11b9414932b9fe02f96c070c09a5 100644 (file)
@@ -62,7 +62,7 @@ namespace priority_queue {
                 for ( T * p = pFirst; p != pLast; ++p, ++i )
                     *p = i;
 
-                shuffle( pFirst, pLast );
+                CppUnitMini::TestCase::shuffle( pFirst, pLast );
             }
 
             ~data_array()