mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 13:45:10 +00:00
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:
parent
72f51e1d89
commit
aebdf00cd0
@ -106,7 +106,7 @@ inline void custom_delete(void *raw_ptr) {
|
|||||||
template <typename T, typename D>
|
template <typename T, typename D>
|
||||||
guarded_delete make_guarded_custom_deleter(bool armed_flag) {
|
guarded_delete make_guarded_custom_deleter(bool armed_flag) {
|
||||||
return guarded_delete(custom_delete<T, D>, armed_flag);
|
return guarded_delete(custom_delete<T, D>, armed_flag);
|
||||||
};
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool is_std_default_delete(const std::type_info &rtti_deleter) {
|
inline bool is_std_default_delete(const std::type_info &rtti_deleter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user