Fixed Clang build
[libcds.git] / test / unit / list / test_kv_list_nogc.h
index aff834afdcd507aca4cd1ca972332b46da1ccf7c..cec703fb1f016363a8febe5b5956e882f6736058 100644 (file)
@@ -5,7 +5,7 @@
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
-    
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
 
@@ -25,7 +25,7 @@
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 #ifndef CDSUNIT_LIST_TEST_KV_LIST_NOGC_H
@@ -147,8 +147,6 @@ namespace cds_test {
             // Postcondition: list is empty
 
             static const size_t nSize = 20;
-            typedef typename List::key_type    list_key_type;
-            typedef typename List::mapped_type list_mapped_type;
             typedef typename List::value_type  list_value_type;
 
             struct key_val {
@@ -167,7 +165,7 @@ namespace cds_test {
             ASSERT_CONTAINER_SIZE( l, 0 );
 
             // insert/find
-            for ( auto const& i : arr ) {
+            for ( key_val const& i : arr ) {
                 EXPECT_TRUE( l.contains( i.key ) == l.end());
                 EXPECT_TRUE( l.contains( key_type( i.key )) == l.end());
                 EXPECT_TRUE( l.contains( other_key( i.key ), other_less()) == l.end());
@@ -300,9 +298,6 @@ namespace cds_test {
             // Postcondition: list is empty
 
             static const size_t nSize = 20;
-            typedef typename List::key_type    list_key_type;
-            typedef typename List::mapped_type list_mapped_type;
-            typedef typename List::value_type  list_value_type;
 
             struct key_val {
                 int key;