mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-11 08:50:31 +00:00
maint(clang-tidy): Enable cpp-coreguideline slicing checks (#3210)
* maint(clang-tidy): add a clang-tidy slicing check * Add self + touch up readme * Fix typo
This commit is contained in:
@@ -1664,7 +1664,7 @@ inline str enum_name(handle arg) {
|
||||
}
|
||||
|
||||
struct enum_base {
|
||||
enum_base(handle base, handle parent) : m_base(base), m_parent(parent) { }
|
||||
enum_base(const handle &base, const handle &parent) : m_base(base), m_parent(parent) { }
|
||||
|
||||
PYBIND11_NOINLINE void init(bool is_arithmetic, bool is_convertible) {
|
||||
m_base.attr("__entries") = dict();
|
||||
|
||||
Reference in New Issue
Block a user