summarylogtreecommitdiffstats
path: root/Value.h.patch
blob: 61fe69cd0883015ac00c3f2c4d4db64e6d161a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/include/gura/Value.h b/include/gura/Value.h
index f0bc5f7ee..cf22eb4de 100644
--- a/include/gura/Value.h
+++ b/include/gura/Value.h
@@ -620,7 +620,7 @@ typedef std::deque<Value, Allocator<Value> > ValueDeque;
 //-----------------------------------------------------------------------------
 // ValueDict
 //-----------------------------------------------------------------------------
-class GURA_DLLDECLARE ValueDict : public std::map<Value, Value, Value::LessThan, Allocator<Value> > {
+class GURA_DLLDECLARE ValueDict : public std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > > {
 public:
 	enum StoreMode {
 		STORE_Strict,
@@ -641,13 +641,13 @@ public:
 		MemoryPool::Deallocate(pv);
 	}
 public:
-	inline ValueDict() : std::map<Value, Value, Value::LessThan, Allocator<Value> >(),
+	inline ValueDict() : std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(),
 								_cntRef(1), _ignoreCaseFlag(false) {}
 	inline ValueDict(bool ignoreCaseFlag) :
-		std::map<Value, Value, Value::LessThan, Allocator<Value> >(ignoreCaseFlag? Value::LessThanIgnoreCase : Value::LessThanCase),
+		std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(ignoreCaseFlag? Value::LessThanIgnoreCase : Value::LessThanCase),
 		_cntRef(1), _ignoreCaseFlag(ignoreCaseFlag) {}
 	inline ValueDict(const ValueDict &valDict) :
-		std::map<Value, Value, Value::LessThan, Allocator<Value> >(valDict),
+		std::map<Value, Value, Value::LessThan, Allocator<std::pair<const Value, Value> > >(valDict),
 		_cntRef(1), _ignoreCaseFlag(valDict._ignoreCaseFlag) {}
 private:
 	inline ~ValueDict() {}