From 0780655808e4aa299a58ac38da1bc1487ac01be1 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sat, 12 Nov 2016 20:41:31 -0500 Subject: [PATCH] Fix test compilation failure under gcc 4.9 (#496) --- tests/test_sequences_and_iterators.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_sequences_and_iterators.cpp b/tests/test_sequences_and_iterators.cpp index 0a88cef6f..323b4bf00 100644 --- a/tests/test_sequences_and_iterators.cpp +++ b/tests/test_sequences_and_iterators.cpp @@ -129,7 +129,8 @@ private: // map-like functionality. class StringMap { public: - StringMap(std::unordered_map init = {}) + StringMap() = default; + StringMap(std::unordered_map init) : map(std::move(init)) {} void set(std::string key, std::string val) {