We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d02f219 commit 424ac4fCopy full SHA for 424ac4f
include/pybind11/detail/common.h
@@ -1033,12 +1033,7 @@ PYBIND11_NAMESPACE_END(detail)
1033
/// - regular: static_cast<Return (Class::*)(Arg0, Arg1, Arg2)>(&Class::func)
1034
/// - sweet: overload_cast<Arg0, Arg1, Arg2>(&Class::func)
1035
template <typename... Args>
1036
-# if (defined(_MSC_VER) && _MSC_VER < 1920) /* MSVC 2017 */ \
1037
- || (defined(__clang__) && __clang_major__ == 5)
1038
-static constexpr detail::overload_cast_impl<Args...> overload_cast = {};
1039
-# else
1040
-static constexpr detail::overload_cast_impl<Args...> overload_cast;
1041
-# endif
+static constexpr detail::overload_cast_impl<Args...> overload_cast{};
1042
#endif
1043
1044
/// Const member function selector for overload_cast
0 commit comments