Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85006 - trunk/libs/type_traits/test
From: antoshkka_at_[hidden]
Date: 2013-07-12 07:14:11


Author: apolukhin
Date: 2013-07-12 07:14:11 EDT (Fri, 12 Jul 2013)
New Revision: 85006
URL: http://svn.boost.org/trac/boost/changeset/85006

Log:
Fix tests build under MSVC for is_copy_constructible triat (refs #8802)

Text files modified:
   trunk/libs/type_traits/test/is_copy_constructible_test.cpp | 10 ++++++++++
   1 files changed, 10 insertions(+), 0 deletions(-)

Modified: trunk/libs/type_traits/test/is_copy_constructible_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/is_copy_constructible_test.cpp Fri Jul 12 04:33:26 2013 (r85005)
+++ trunk/libs/type_traits/test/is_copy_constructible_test.cpp 2013-07-12 07:14:11 EDT (Fri, 12 Jul 2013) (r85006)
@@ -19,9 +19,19 @@
     has(const has&){}
 };
 
+// MSVC can not generate neither default constructor, nor assignment operator,
+// nor copy constructor for `has2` type. Supressing those warnings is essential,
+// because we treat warnings as errors in those tests
+#if (defined _MSC_VER)
+# pragma warning( push )
+# pragma warning( disable : 4510 4512 4610)
+#endif
 struct has2 {
     const int& i;
 };
+#if (defined _MSC_VER)
+# pragma warning( pop )
+#endif
 
 struct has3 {
     has3(has3&){}


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