mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
Fixing oversight (clang-tidy error).
This commit is contained in:
parent
362e64e1ca
commit
b04a70b5cc
@ -108,7 +108,7 @@ guarded_delete make_guarded_builtin_delete(bool armed_flag) {
|
||||
template <typename T, typename D>
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user