mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +00:00
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!");
|
+ "\" 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);
|
m_base.attr(std::move(name)) = std::move(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user