From 440fa73e0126ba58e98c5323bf5161c7a4ef36d7 Mon Sep 17 00:00:00 2001 From: khizmax Date: Mon, 14 Nov 2016 16:18:38 +0300 Subject: [PATCH] Fixed upsert() function --- cds/container/split_list_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cds/container/split_list_map.h b/cds/container/split_list_map.h index 45711480..59c06caf 100644 --- a/cds/container/split_list_map.h +++ b/cds/container/split_list_map.h @@ -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( key ), std::forward( val )), bAllowInsert ); + return base_class::upsert( std::make_pair( key_type( std::forward( key )), mapped_type( std::forward( val ))), bAllowInsert ); } -- 2.34.1