From: khizmax Date: Mon, 14 Nov 2016 13:18:38 +0000 (+0300) Subject: Fixed upsert() function X-Git-Tag: v2.2.0~62 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=440fa73e0126ba58e98c5323bf5161c7a4ef36d7;p=libcds.git Fixed upsert() function --- 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 ); }