summarylogtreecommitdiffstats
path: root/Value.h.patch
diff options
context:
space:
mode:
authorMichiru Saito2018-07-21 22:59:30 +0900
committerMichiru Saito2018-07-21 22:59:30 +0900
commitd34e58302daabfef742080ebb8115e29b96eb392 (patch)
treea183c62f65bec9e19f439584cbef10575b123291 /Value.h.patch
downloadaur-d34e58302daabfef742080ebb8115e29b96eb392.tar.gz
Initial import
Diffstat (limited to 'Value.h.patch')
-rw-r--r--Value.h.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/Value.h.patch b/Value.h.patch
new file mode 100644
index 000000000000..61fe69cd0883
--- /dev/null
+++ b/Value.h.patch
@@ -0,0 +1,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() {}