Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69433 - in trunk/libs/spirit/example/qi/compiler_tutorial: . calc7
From: joel_at_[hidden]
Date: 2011-03-01 02:00:40


Author: djowel
Date: 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
New Revision: 69433
URL: http://svn.boost.org/trac/boost/changeset/69433

Log:
silenced the pesky msvc warning
Text files modified:
   trunk/libs/spirit/example/qi/compiler_tutorial/calc4.cpp | 8 ++++++--
   trunk/libs/spirit/example/qi/compiler_tutorial/calc5.cpp | 8 ++++++--
   trunk/libs/spirit/example/qi/compiler_tutorial/calc6.cpp | 6 +++++-
   trunk/libs/spirit/example/qi/compiler_tutorial/calc7/expression.cpp | 4 ++++
   trunk/libs/spirit/example/qi/compiler_tutorial/calc7/main.cpp | 2 +-
   trunk/libs/spirit/example/qi/compiler_tutorial/calc7/statement.cpp | 4 ++++
   6 files changed, 26 insertions(+), 6 deletions(-)

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc4.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc4.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc4.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -10,8 +10,8 @@
 // once created, is traversed, 1) To print its contents and
 // 2) To evaluate the result.
 //
-// [ JDG April 28, 2008 : For BoostCon 2008 ]
-// [ JDG February 18, 2011 : Pure attributes. No semantic actions. ]
+// [ JDG April 28, 2008 ] For BoostCon 2008
+// [ JDG February 18, 2011 ] Pure attributes. No semantic actions.
 //
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -22,6 +22,10 @@
 // you need (e.g. see qi::uint_type uint_ below).
 #define BOOST_SPIRIT_NO_PREDEFINED_TERMINALS
 
+#if defined(_MSC_VER)
+# pragma warning(disable: 4345)
+#endif
+
 #include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/variant/recursive_variant.hpp>

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc5.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc5.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc5.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -9,8 +9,8 @@
 // Same as Calc4, this time, we'll incorporate debugging support,
 // plus error handling and reporting.
 //
-// [ JDG April 28, 2008 : For BoostCon 2008 ]
-// [ JDG February 18, 2011 : Pure attributes. No semantic actions. ]
+// [ JDG April 28, 2008 ] For BoostCon 2008
+// [ JDG February 18, 2011 ] Pure attributes. No semantic actions.
 //
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -28,6 +28,10 @@
 //#define BOOST_SPIRIT_QI_DEBUG
 ///////////////////////////////////////////////////////////////////////////////
 
+#if defined(_MSC_VER)
+# pragma warning(disable: 4345)
+#endif
+
 #include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/variant/recursive_variant.hpp>

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc6.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc6.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc6.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -13,7 +13,7 @@
 // [ JDG Sometime 2000 ] pre-boost
 // [ JDG September 18, 2002 ] spirit1
 // [ JDG April 8, 2007 ] spirit2
-// [ JDG February 18, 2011 : Pure attributes. No semantic actions. ]
+// [ JDG February 18, 2011 ] Pure attributes. No semantic actions.
 //
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -31,6 +31,10 @@
 //#define BOOST_SPIRIT_QI_DEBUG
 ///////////////////////////////////////////////////////////////////////////////
 
+#if defined(_MSC_VER)
+# pragma warning(disable: 4345)
+#endif
+
 #include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/variant/recursive_variant.hpp>

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc7/expression.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc7/expression.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc7/expression.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -4,6 +4,10 @@
     Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
+#if defined(_MSC_VER)
+# pragma warning(disable: 4345)
+#endif
+
 #include "expression_def.hpp"
 
 typedef std::string::const_iterator iterator_type;

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc7/main.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc7/main.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc7/main.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -14,7 +14,7 @@
 // see how expressions and statements are built as modular grammars.
 //
 // [ JDG April 9, 2007 ] spirit2
-// [ JDG February 18, 2011 : Pure attributes. No semantic actions. ]
+// [ JDG February 18, 2011 ] Pure attributes. No semantic actions.
 //
 ///////////////////////////////////////////////////////////////////////////////
 

Modified: trunk/libs/spirit/example/qi/compiler_tutorial/calc7/statement.cpp
==============================================================================
--- trunk/libs/spirit/example/qi/compiler_tutorial/calc7/statement.cpp (original)
+++ trunk/libs/spirit/example/qi/compiler_tutorial/calc7/statement.cpp 2011-03-01 02:00:31 EST (Tue, 01 Mar 2011)
@@ -4,6 +4,10 @@
     Distributed under the Boost Software License, Version 1.0. (See accompanying
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
+#if defined(_MSC_VER)
+# pragma warning(disable: 4345)
+#endif
+
 #include "statement_def.hpp"
 
 typedef std::string::const_iterator iterator_type;


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