Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85173 - trunk/libs/type_traits/test
From: antoshkka_at_[hidden]
Date: 2013-07-30 03:50:22


Author: apolukhin
Date: 2013-07-30 03:50:21 EDT (Tue, 30 Jul 2013)
New Revision: 85173
URL: http://svn.boost.org/trac/boost/changeset/85173

Log:
Workaround some of the Intel warinings/bugs in the is_copy_constructible_tests file (refs #8802)

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

Modified: trunk/libs/type_traits/test/is_copy_constructible_test.cpp
==============================================================================
--- trunk/libs/type_traits/test/is_copy_constructible_test.cpp Mon Jul 29 20:36:47 2013 (r85172)
+++ trunk/libs/type_traits/test/is_copy_constructible_test.cpp 2013-07-30 03:50:21 EDT (Tue, 30 Jul 2013) (r85173)
@@ -28,6 +28,7 @@
 #endif
 struct has2 {
     const int& i;
+ explicit has2(const int& val) : i(val) {}
 };
 #if (defined _MSC_VER)
 # pragma warning( pop )
@@ -43,7 +44,8 @@
 };
 
 struct has_not: public boost::noncopyable {
- has_not() {}
+ typedef boost::noncopyable base_t;
+ has_not() : base_t() {}
 };
 
 #ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
@@ -61,7 +63,8 @@
 #endif // BOOST_NO_CXX11_DELETED_FUNCTIONS
 
 struct has_not4: private boost::noncopyable {
- has_not4() {}
+ typedef boost::noncopyable base_t;
+ has_not4() : base_t() {}
 private:
     has_not4(const has_not4&);
 };


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