From 679da920a44c237afbf9ed2174dd00c1c1558762 Mon Sep 17 00:00:00 2001 From: khizmax Date: Wed, 3 Aug 2016 13:47:09 +0300 Subject: [PATCH] Fixed explicit ctor stuff --- cds/container/impl/iterable_kvlist.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.34.1