You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/pybind11/detail/common.h
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -723,13 +723,20 @@ using expand_side_effects = bool[];
723
723
724
724
PYBIND11_NAMESPACE_END(detail)
725
725
726
+
#if defined(_MSC_VER)
727
+
# pragma warning(push)
728
+
# pragma warning(disable: 4275) // warning C4275: An exported class was derived from a class that wasn't exported. Can be ignored when derived from a STL class.
729
+
#endif
726
730
/// C++ bindings of builtin Python exceptions
727
731
classPYBIND11_EXPORT builtin_exception : public std::runtime_error {
728
732
public:
729
733
using std::runtime_error::runtime_error;
730
734
/// Set the error using the Python C API
731
735
virtualvoidset_error() const = 0;
732
736
};
737
+
#if defined(_MSC_VER)
738
+
# pragma warning(pop)
739
+
#endif
733
740
734
741
#definePYBIND11_RUNTIME_EXCEPTION(name, type) \
735
742
classPYBIND11_EXPORT name : public builtin_exception { public: \
0 commit comments