From cb2d3bbd649c3ff9ea347245f377a9843d87f51a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 21 Oct 2011 10:49:38 +0000 Subject: [PATCH] Disable the warning about dll-interface needed for std::ofstream members of Log::State --- Kinetic_data_structures/include/CGAL/Tools/Log.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Kinetic_data_structures/include/CGAL/Tools/Log.h b/Kinetic_data_structures/include/CGAL/Tools/Log.h index cd1a1e61df3..60bbb8e8028 100644 --- a/Kinetic_data_structures/include/CGAL/Tools/Log.h +++ b/Kinetic_data_structures/include/CGAL/Tools/Log.h @@ -26,6 +26,13 @@ #include #include +#if defined(BOOST_MSVC) +// Disable the warning about dll-interface needed for std::ofstream members +// of Log::State. +# pragma warning(push) +# pragma warning(disable:4251) +#endif + namespace CGAL { class Log @@ -151,4 +158,11 @@ struct Set_log_state{ }; } //namespace CGAL + +#if defined(BOOST_MSVC) +# pragma warning(pop) #endif + +#endif + +