mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +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.
|
// 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user