Fixes for C++98
[junction.git] / junction / extra / impl / MapAdapter_Folly.h
index 02d54a64013e75ca540b46fb799e8f35dea623f5..dd2378fbe9099f04cb85e2b0508cfacf92e000f0 100644 (file)
@@ -26,7 +26,7 @@ namespace extra {
 
 class MapAdapter {
 public:
-    static TURF_CONSTEXPR const char* MapName = "Folly AtomicHashMap";
+    static TURF_CONSTEXPR const char* getMapName() { return "Folly AtomicHashMap"; }
 
     MapAdapter(ureg) {
     }
@@ -54,7 +54,7 @@ public:
         Map(ureg capacity) : m_map(capacity) {
         }
 
-        void insert(u32 key, void* value) {
+        void assign(u32 key, void* value) {
             m_map.insert(std::make_pair(key, value));
         }