projects
/
junction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rename insert() to set() to avoid confusion with std::map::insert()
[junction.git]
/
junction
/
extra
/
impl
/
MapAdapter_StdMap.h
diff --git
a/junction/extra/impl/MapAdapter_StdMap.h
b/junction/extra/impl/MapAdapter_StdMap.h
index fba38ae21ccbb5ba121663cdc45ed36f8023e024..84259369d1cdddea13dba15f7af51021481d8f83 100644
(file)
--- a/
junction/extra/impl/MapAdapter_StdMap.h
+++ b/
junction/extra/impl/MapAdapter_StdMap.h
@@
-52,9
+52,9
@@
public:
Map(ureg) {
}
- void
inser
t(u32 key, void* value) {
+ void
se
t(u32 key, void* value) {
std::lock_guard<std::mutex> guard(m_mutex);
- m_map
.insert(std::make_pair(key, value))
;
+ m_map
[key] = value
;
}
void* get(u32 key) {