mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
Fix clang-tidy error: 'auto reg' can be declared as 'auto *reg' [readability-qualified-auto,-warnings-as-errors]
This commit is contained in:
parent
696b80a59b
commit
516811642e
@ -32,7 +32,7 @@ using type_caster_odr_guard_registry_type = std::unordered_map<std::type_index,
|
|||||||
|
|
||||||
inline type_caster_odr_guard_registry_type &type_caster_odr_guard_registry() {
|
inline type_caster_odr_guard_registry_type &type_caster_odr_guard_registry() {
|
||||||
// Using the no-destructor idiom (maximizes safety).
|
// Using the no-destructor idiom (maximizes safety).
|
||||||
static auto reg = new type_caster_odr_guard_registry_type();
|
static auto *reg = new type_caster_odr_guard_registry_type();
|
||||||
return *reg;
|
return *reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user