mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-03 14:03:30 +08: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…
x
Reference in New Issue
Block a user