projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc10f85
)
Fixed explicit ctor stuff
author
khizmax
<khizmax@gmail.com>
Wed, 3 Aug 2016 10:10:35 +0000
(13:10 +0300)
committer
khizmax
<khizmax@gmail.com>
Wed, 3 Aug 2016 10:10:35 +0000
(13:10 +0300)
cds/container/impl/iterable_kvlist.h
patch
|
blob
|
history
diff --git
a/cds/container/impl/iterable_kvlist.h
b/cds/container/impl/iterable_kvlist.h
index 07087f1ed5487bf0798eadef930b467b98e48482..aaad301e17d8d31f4452f6e109f05252b5878d10 100644
(file)
--- a/
cds/container/impl/iterable_kvlist.h
+++ b/
cds/container/impl/iterable_kvlist.h
@@
-356,7
+356,7
@@
namespace cds { namespace container {
template <typename Q, typename V >
std::pair<bool, bool> upsert( Q&& key, V&& val, bool bInsert = true )
{
- return base_class::upsert( value_type(
std::forward<Q>( key ), std::forward<V>( val
)), bInsert );
+ return base_class::upsert( value_type(
key_type( std::forward<Q>( key )), mapped_type( std::forward<V>( val )
)), bInsert );
}
/// Inserts a new node using move semantics