mirror of https://github.com/pybind/pybind11.git
chore: remove unnecessary temporary std::pair (#4103)
This commit is contained in:
parent
f8e8403b85
commit
88a1bb9260
|
@ -2073,7 +2073,7 @@ struct enum_base {
|
|||
+ "\" already exists!");
|
||||
}
|
||||
|
||||
entries[name] = std::make_pair(value, doc);
|
||||
entries[name] = pybind11::make_tuple(value, doc);
|
||||
m_base.attr(std::move(name)) = std::move(value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue