Add missing explicit to resolve clang-tidy error.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-07-05 12:33:19 -07:00
parent c84dacc379
commit 46ab14ebb4

View File

@ -19,7 +19,7 @@ template <typename VHType>
struct value_and_holder_helper { struct value_and_holder_helper {
const VHType *loaded_v_h; 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 { bool have_holder() const {
return loaded_v_h->vh != nullptr && loaded_v_h->holder_constructed(); return loaded_v_h->vh != nullptr && loaded_v_h->holder_constructed();