diff --git a/include/pybind11/common.h b/include/pybind11/common.h index 50c09592a..dc50b7cfb 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -799,6 +799,8 @@ struct nodelete { template void operator()(T*) { } }; NAMESPACE_BEGIN(detail) template struct overload_cast_impl { + constexpr overload_cast_impl() {} // MSVC 2015 needs this + template constexpr auto operator()(Return (*pf)(Args...)) const noexcept -> decltype(pf) { return pf; }