Boost logo

Boost-Commit :

From: hartmut.kaiser_at_[hidden]
Date: 2008-04-30 16:41:38


Author: hkaiser
Date: 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
New Revision: 44951
URL: http://svn.boost.org/trac/boost/changeset/44951

Log:
Spirit.Karma: added #include <boost/config/warning_disable.hpp> to Karma examples
Text files modified:
   trunk/libs/spirit/example/karma/actions.cpp | 7 ++++---
   trunk/libs/spirit/example/karma/basic_facilities.cpp | 1 +
   trunk/libs/spirit/example/karma/calc2_ast_dump.cpp | 1 +
   trunk/libs/spirit/example/karma/calc2_ast_rpn.cpp | 1 +
   trunk/libs/spirit/example/karma/functor_facilities.cpp | 1 +
   trunk/libs/spirit/example/karma/quick_start1.cpp | 1 +
   6 files changed, 9 insertions(+), 3 deletions(-)

Modified: trunk/libs/spirit/example/karma/actions.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/actions.cpp (original)
+++ trunk/libs/spirit/example/karma/actions.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -6,14 +6,15 @@
     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 =============================================================================*/
 
-#include <iostream>
-#include <strstream>
-
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/karma.hpp>
 #include <boost/lambda/lambda.hpp>
 #include <boost/bind.hpp>
 #include <boost/function_output_iterator.hpp>
 
+#include <iostream>
+#include <strstream>
+
 // Presented are various ways to attach semantic actions
 // * Using plain function pointer
 // * Using simple function object

Modified: trunk/libs/spirit/example/karma/basic_facilities.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/basic_facilities.cpp (original)
+++ trunk/libs/spirit/example/karma/basic_facilities.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -15,6 +15,7 @@
 // use a larger value for the alignment field width (default is 10)
 #define BOOST_KARMA_DEFAULT_FIELD_LENGTH 25
 
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/karma.hpp>
 #include <boost/spirit/include/karma_stream.hpp>
 

Modified: trunk/libs/spirit/example/karma/calc2_ast_dump.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/calc2_ast_dump.cpp (original)
+++ trunk/libs/spirit/example/karma/calc2_ast_dump.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -14,6 +14,7 @@
 // [ HK April 28, 2008 ]
 //
 ///////////////////////////////////////////////////////////////////////////////
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/spirit/include/karma.hpp>
 

Modified: trunk/libs/spirit/example/karma/calc2_ast_rpn.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/calc2_ast_rpn.cpp (original)
+++ trunk/libs/spirit/example/karma/calc2_ast_rpn.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -14,6 +14,7 @@
 // [ HK April 28, 2008 ]
 //
 ///////////////////////////////////////////////////////////////////////////////
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/qi.hpp>
 #include <boost/spirit/include/karma.hpp>
 

Modified: trunk/libs/spirit/example/karma/functor_facilities.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/functor_facilities.cpp (original)
+++ trunk/libs/spirit/example/karma/functor_facilities.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -6,6 +6,7 @@
 // This examples demonstrate how to write functor based generators for special
 // purposes.
 
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/karma.hpp>
 #include <boost/spirit/include/karma_stream.hpp>
 

Modified: trunk/libs/spirit/example/karma/quick_start1.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/quick_start1.cpp (original)
+++ trunk/libs/spirit/example/karma/quick_start1.cpp 2008-04-30 16:41:37 EDT (Wed, 30 Apr 2008)
@@ -6,6 +6,7 @@
 // The main purpose of this example is to show how a single container type can
 // be formatted using different output grammars.
 
+#include <boost/config/warning_disable.hpp>
 #include <boost/spirit/include/karma.hpp>
 #include <boost/spirit/include/karma_stream.hpp>
 


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