Fix "extra ';' outside of a function" warning (#3929)

Fix the following warning seen with clang:

include/pybind11/detail/smart_holder_poc.h:109:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
This commit is contained in:
Tomi Valkeinen 2022-05-07 12:18:13 +03:00 committed by GitHub
parent 72f51e1d89
commit aebdf00cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ inline void custom_delete(void *raw_ptr) {
template <typename T, typename D>
guarded_delete make_guarded_custom_deleter(bool armed_flag) {
return guarded_delete(custom_delete<T, D>, armed_flag);
};
}
template <typename T>
inline bool is_std_default_delete(const std::type_info &rtti_deleter) {