Commit 07806558 by Jason Rhinelander Committed by Wenzel Jakob

Fix test compilation failure under gcc 4.9 (#496)

parent 920e0e34
...@@ -129,7 +129,8 @@ private: ...@@ -129,7 +129,8 @@ private:
// map-like functionality. // map-like functionality.
class StringMap { class StringMap {
public: public:
StringMap(std::unordered_map<std::string, std::string> init = {}) StringMap() = default;
StringMap(std::unordered_map<std::string, std::string> init)
: map(std::move(init)) {} : map(std::move(init)) {}
void set(std::string key, std::string val) { void set(std::string key, std::string val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment