From eb4c1f2587a863a94c33dfc6167a1bb69dea504c Mon Sep 17 00:00:00 2001 From: Stephan Diederich Date: Wed, 17 Sep 2008 18:44:34 +0000 Subject: [PATCH] silence MSVC8 warnings through pragmas, fixes #2296 [SVN r48821] --- include/boost/concept_check.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index 09f6e22..12ec2ad 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -171,6 +171,11 @@ namespace boost TT b; }; +#if (defined _MSC_VER) +# pragma warning( push ) +# pragma warning( disable : 4510 ) // default constructor could not be generated +# pragma warning( disable : 4610 ) // object 'class' can never be instantiated - user-defined constructor required +#endif // The SGI STL version of Assignable requires copy constructor and operator= BOOST_concept(SGIAssignable,(TT)) { @@ -192,6 +197,9 @@ namespace boost } TT a; }; +#if (defined _MSC_VER) +# pragma warning( pop ) +#endif BOOST_concept(Convertible,(X)(Y)) {