mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Fix test compilation failure under gcc 4.9 (#496)
This commit is contained in:
parent
920e0e349d
commit
0780655808
@ -129,7 +129,8 @@ private:
|
||||
// map-like functionality.
|
||||
class StringMap {
|
||||
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)) {}
|
||||
|
||||
void set(std::string key, std::string val) {
|
||||
|
Loading…
Reference in New Issue
Block a user