Fixed upsert() function
authorkhizmax <khizmax@gmail.com>
Mon, 14 Nov 2016 13:18:38 +0000 (16:18 +0300)
committerkhizmax <khizmax@gmail.com>
Mon, 14 Nov 2016 13:18:38 +0000 (16:18 +0300)
cds/container/split_list_map.h

index 45711480b827c72cca108a1976de1040ab60baa6..59c06caff61fbe4973e2a37dfa438d55ab24080a 100644 (file)
@@ -478,7 +478,7 @@ namespace cds { namespace container {
 #endif
         upsert( Q&& key, V&& val, bool bAllowInsert = true )
         {
-            return base_class::upsert( std::make_pair( std::forward<Q>( key ), std::forward<V>( val )), bAllowInsert );
+            return base_class::upsert( std::make_pair( key_type( std::forward<Q>( key )), mapped_type( std::forward<V>( val ))), bAllowInsert );
         }