Fix test compilation failure under gcc 4.9 (#496)

This commit is contained in:
Jason Rhinelander 2016-11-12 20:41:31 -05:00 committed by Wenzel Jakob
parent 920e0e349d
commit 0780655808

View File

@ -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) {