|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48821 - trunk/boost
From: stephan.diederich_at_[hidden]
Date: 2008-09-17 14:44:34
Author: sdiederich
Date: 2008-09-17 14:44:34 EDT (Wed, 17 Sep 2008)
New Revision: 48821
URL: http://svn.boost.org/trac/boost/changeset/48821
Log:
silence MSVC8 warnings through pragmas, fixes #2296
Text files modified:
trunk/boost/concept_check.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/concept_check.hpp
==============================================================================
--- trunk/boost/concept_check.hpp (original)
+++ trunk/boost/concept_check.hpp 2008-09-17 14:44:34 EDT (Wed, 17 Sep 2008)
@@ -171,6 +171,11 @@
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 @@
}
TT a;
};
+#if (defined _MSC_VER)
+# pragma warning( pop )
+#endif
BOOST_concept(Convertible,(X)(Y))
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk