Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84200 - in trunk: boost/coroutine/v1/detail libs/coroutine/src/detail
From: oliver.kowalke_at_[hidden]
Date: 2013-05-09 01:47:17


Author: olli
Date: 2013-05-09 01:47:16 EDT (Thu, 09 May 2013)
New Revision: 84200
URL: http://svn.boost.org/trac/boost/changeset/84200

Log:
coroutine: disable warning for MSVC

Text files modified:
   trunk/boost/coroutine/v1/detail/coroutine_object.hpp | 9 +++++++++
   trunk/libs/coroutine/src/detail/coroutine_context.cpp | 9 +++++++++
   2 files changed, 18 insertions(+), 0 deletions(-)

Modified: trunk/boost/coroutine/v1/detail/coroutine_object.hpp
==============================================================================
--- trunk/boost/coroutine/v1/detail/coroutine_object.hpp (original)
+++ trunk/boost/coroutine/v1/detail/coroutine_object.hpp 2013-05-09 01:47:16 EDT (Thu, 09 May 2013)
@@ -30,6 +30,11 @@
 #include <boost/coroutine/v1/detail/arg.hpp>
 #include <boost/coroutine/v1/detail/coroutine_base.hpp>
 
+#ifdef BOOST_MSVC
+ #pragma warning (push)
+ #pragma warning (disable: 4355) // using 'this' in initializer list
+#endif
+
 #ifdef BOOST_HAS_ABI_HEADERS
 # include BOOST_ABI_PREFIX
 #endif
@@ -99,4 +104,8 @@
 # include BOOST_ABI_SUFFIX
 #endif
 
+#ifdef BOOST_MSVC
+ #pragma warning (pop)
+#endif
+
 #endif // BOOST_COROUTINES_V1_DETAIL_COROUTINE_OBJECT_H

Modified: trunk/libs/coroutine/src/detail/coroutine_context.cpp
==============================================================================
--- trunk/libs/coroutine/src/detail/coroutine_context.cpp (original)
+++ trunk/libs/coroutine/src/detail/coroutine_context.cpp 2013-05-09 01:47:16 EDT (Thu, 09 May 2013)
@@ -8,6 +8,11 @@
 
 #include "boost/coroutine/detail/coroutine_context.hpp"
 
+#ifdef BOOST_MSVC
+ #pragma warning (push)
+ #pragma warning (disable: 4355) // using 'this' in initializer list
+#endif
+
 #if defined(BOOST_USE_SEGMENTED_STACKS)
 extern "C" {
 
@@ -85,3 +90,7 @@
 #ifdef BOOST_HAS_ABI_HEADERS
 # include BOOST_ABI_SUFFIX
 #endif
+
+#ifdef BOOST_MSVC
+ #pragma warning (pop)
+#endif


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