diff --git a/test/uncaught_exceptions.cpp b/test/uncaught_exceptions.cpp index d8b1fc6..c5d7958 100644 --- a/test/uncaught_exceptions.cpp +++ b/test/uncaught_exceptions.cpp @@ -18,6 +18,10 @@ #include #include +#if defined(_MSC_VER) +# pragma warning(disable: 4512) // assignment operator could not be generated +#endif + struct my_exception {}; class exception_watcher diff --git a/test/uncaught_exceptions_np.cpp b/test/uncaught_exceptions_np.cpp index 7498ccf..f60aef1 100644 --- a/test/uncaught_exceptions_np.cpp +++ b/test/uncaught_exceptions_np.cpp @@ -20,6 +20,10 @@ #include +#if defined(_MSC_VER) +# pragma warning(disable: 4512) // assignment operator could not be generated +#endif + struct my_exception1 {}; struct my_exception2 {};