]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/concept_check.hpp
How about if we write a script to do some of this and stop doing it
[lyx.git] / boost / boost / concept_check.hpp
index 4e9fddfb414bec1ac1055571812eccf22ff19b7c..12ec2ad77525e1fbe0884d7ce12a275f0fafd16e 100644 (file)
@@ -144,6 +144,8 @@ namespace boost
     void const_constraints(const TT& b) {
 #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
       a = b;              // const required for argument to assignment
+#else
+      ignore_unused_variable_warning(b);
 #endif
     }
    private:
@@ -169,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))
   {
@@ -190,6 +197,9 @@ namespace boost
     }
     TT a;
   };
+#if (defined _MSC_VER)
+# pragma warning( pop )
+#endif
 
   BOOST_concept(Convertible,(X)(Y))
   {