summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-04-06 11:16:01 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-04-06 11:16:01 -0700
commit6dd812ef9d8ab93a6825a31f62e75f1f58811bdc (patch)
treec9f88ae9f870a977f809eacb6b2c970556963792
parenta8a96ed6e4d5324598a000c306f477d82874538a (diff)
downloadtmwa-6dd812ef9d8ab93a6825a31f62e75f1f58811bdc.tar.gz
tmwa-6dd812ef9d8ab93a6825a31f62e75f1f58811bdc.tar.bz2
tmwa-6dd812ef9d8ab93a6825a31f62e75f1f58811bdc.tar.xz
tmwa-6dd812ef9d8ab93a6825a31f62e75f1f58811bdc.zip
Add initializer_list support to Map wrapper
-rw-r--r--src/common/db.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/db.hpp b/src/common/db.hpp
index d171429..bd47928 100644
--- a/src/common/db.hpp
+++ b/src/common/db.hpp
@@ -30,6 +30,10 @@ class Map
Impl impl;
public:
+ Map() = default;
+ Map(std::initializer_list<std::pair<const K, V>> il)
+ : impl(il)
+ {}
typedef typename Impl::iterator iterator;
typedef typename Impl::const_iterator const_iterator;