From b04a70b5cc2ea2753d8d06aaae496c6646e0c610 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 16 Jun 2021 13:22:31 -0700 Subject: [PATCH] Fixing oversight (clang-tidy error). --- include/pybind11/detail/smart_holder_poc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/smart_holder_poc.h b/include/pybind11/detail/smart_holder_poc.h index 70e4e2da0..06df06008 100644 --- a/include/pybind11/detail/smart_holder_poc.h +++ b/include/pybind11/detail/smart_holder_poc.h @@ -108,7 +108,7 @@ guarded_delete make_guarded_builtin_delete(bool armed_flag) { template struct guarded_custom_deleter : guarded_operator_call { explicit guarded_custom_deleter(bool armed_flag) : guarded_operator_call{armed_flag} {} - virtual void operator()(void *raw_ptr) override { + void operator()(void *raw_ptr) override { if (armed_flag) D()((T *) raw_ptr); }