projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9240d
)
Fixed upsert() function
author
khizmax
<khizmax@gmail.com>
Mon, 14 Nov 2016 13:18:38 +0000
(16:18 +0300)
committer
khizmax
<khizmax@gmail.com>
Mon, 14 Nov 2016 13:18:38 +0000
(16:18 +0300)
cds/container/split_list_map.h
patch
|
blob
|
history
diff --git
a/cds/container/split_list_map.h
b/cds/container/split_list_map.h
index 45711480b827c72cca108a1976de1040ab60baa6..59c06caff61fbe4973e2a37dfa438d55ab24080a 100644
(file)
--- 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<Q>( key ), std::forward<V>( val
)), bAllowInsert );
+ return base_class::upsert( std::make_pair(
key_type( std::forward<Q>( key )), mapped_type( std::forward<V>( val )
)), bAllowInsert );
}