From: khizmax Date: Wed, 3 Aug 2016 10:47:09 +0000 (+0300) Subject: Fixed explicit ctor stuff X-Git-Tag: v2.2.0~151 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=679da920a44c237afbf9ed2174dd00c1c1558762;p=libcds.git Fixed explicit ctor stuff --- diff --git a/cds/container/impl/iterable_kvlist.h b/cds/container/impl/iterable_kvlist.h index a9f830fc..55cc3583 100644 --- a/cds/container/impl/iterable_kvlist.h +++ b/cds/container/impl/iterable_kvlist.h @@ -251,7 +251,7 @@ namespace cds { namespace container { template bool insert( K&& key ) { - return base_class::emplace( std::forward( key ), mapped_type()); + return base_class::emplace( key_type( std::forward( key )), mapped_type()); } /// Inserts new node with a key and a value @@ -267,7 +267,7 @@ namespace cds { namespace container { template bool insert( K&& key, V&& val ) { - return base_class::emplace( std::forward( key ), std::forward( val )); + return base_class::emplace( key_type( std::forward( key )), mapped_type( std::forward( val ))); } /// Inserts new node and initialize it by a functor @@ -369,7 +369,7 @@ namespace cds { namespace container { template bool emplace( K&& key, Args&&... args ) { - return base_class::emplace( std::forward( key ), std::forward( args )... ); + return base_class::emplace( key_type( std::forward( key )), mapped_type( std::forward( args )... )); } /// Deletes \p key from the list