Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68386 - trunk/boost/spirit/home/phoenix/core
From: hartmut.kaiser_at_[hidden]
Date: 2011-01-23 11:09:50


Author: hkaiser
Date: 2011-01-23 11:09:44 EST (Sun, 23 Jan 2011)
New Revision: 68386
URL: http://svn.boost.org/trac/boost/changeset/68386

Log:
Phoenix: suppressing (MSVC) warning about multiple assignment operators
Text files modified:
   trunk/boost/spirit/home/phoenix/core/actor.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: trunk/boost/spirit/home/phoenix/core/actor.hpp
==============================================================================
--- trunk/boost/spirit/home/phoenix/core/actor.hpp (original)
+++ trunk/boost/spirit/home/phoenix/core/actor.hpp 2011-01-23 11:09:44 EST (Sun, 23 Jan 2011)
@@ -56,6 +56,11 @@
         typedef typename Eval::template result<Env>::type type;
     };
 
+#if defined(BOOST_MSVC)
+# pragma warning(push)
+# pragma warning(disable: 4522) // multiple assignment operators specified warning
+#endif
+
     template <typename Eval>
     struct actor : Eval
     {
@@ -151,6 +156,10 @@
         #include <boost/spirit/home/phoenix/core/detail/actor.hpp>
     };
 
+#if defined(BOOST_MSVC)
+# pragma warning(pop)
+#endif
+
     // Forward declaration: The intent to overload the comma must be
     // stated early on to avoid the subtle problem that arises when
     // the header file where the comma operator overload is defined,


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