mirror of
https://github.com/pybind/pybind11.git
synced 2024-12-01 17:37:15 +00:00
Add missing explicit
to resolve clang-tidy error.
This commit is contained in:
parent
c84dacc379
commit
46ab14ebb4
@ -19,7 +19,7 @@ template <typename VHType>
|
||||
struct value_and_holder_helper {
|
||||
const VHType *loaded_v_h;
|
||||
|
||||
value_and_holder_helper(const VHType *loaded_v_h) : loaded_v_h{loaded_v_h} {}
|
||||
explicit value_and_holder_helper(const VHType *loaded_v_h) : loaded_v_h{loaded_v_h} {}
|
||||
|
||||
bool have_holder() const {
|
||||
return loaded_v_h->vh != nullptr && loaded_v_h->holder_constructed();
|
||||
|
Loading…
Reference in New Issue
Block a user