Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53739 - in trunk/boost/spirit/home/classic: actor core/composite core/non_terminal/impl core/primitives/impl meta phoenix utility
From: joel_at_[hidden]
Date: 2009-06-07 22:47:55


Author: djowel
Date: 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
New Revision: 53739
URL: http://svn.boost.org/trac/boost/changeset/53739

Log:
warnings patch (Ticket #1500)
Text files modified:
   trunk/boost/spirit/home/classic/actor/ref_value_actor.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/composite/actions.hpp | 5 +++++
   trunk/boost/spirit/home/classic/core/composite/alternative.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/composite/composite.hpp | 5 +++++
   trunk/boost/spirit/home/classic/core/composite/difference.hpp | 11 ++++++++++-
   trunk/boost/spirit/home/classic/core/composite/kleene_star.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/composite/positive.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/composite/sequence.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/non_terminal/impl/rule.ipp | 9 +++++++++
   trunk/boost/spirit/home/classic/core/primitives/impl/numerics.ipp | 12 ++++++------
   trunk/boost/spirit/home/classic/meta/refactoring.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/phoenix/actor.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/phoenix/closures.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/phoenix/composite.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/phoenix/primitives.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/phoenix/tuples.hpp | 9 +++++++++
   trunk/boost/spirit/home/classic/utility/confix.hpp | 9 +++++++++
   17 files changed, 143 insertions(+), 7 deletions(-)

Modified: trunk/boost/spirit/home/classic/actor/ref_value_actor.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/actor/ref_value_actor.hpp (original)
+++ trunk/boost/spirit/home/classic/actor/ref_value_actor.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -14,6 +14,11 @@
 
 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     ///////////////////////////////////////////////////////////////////////////
     // Summary:
     // A semantic action policy holder. This holder stores a reference to ref.
@@ -65,6 +70,10 @@
 
 BOOST_SPIRIT_CLASSIC_NAMESPACE_END
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 }}
 
 #endif

Modified: trunk/boost/spirit/home/classic/core/composite/actions.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/actions.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/actions.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -16,6 +16,11 @@
 
 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     ///////////////////////////////////////////////////////////////////////////
     //
     // action class

Modified: trunk/boost/spirit/home/classic/core/composite/alternative.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/alternative.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/alternative.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -39,6 +39,11 @@
     ///////////////////////////////////////////////////////////////////////////
     struct alternative_parser_gen;
     
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     template <typename A, typename B>
     struct alternative
     : public binary<A, B, parser<alternative<A, B> > >
@@ -66,6 +71,10 @@
             return this->right().parse(scan);
         }
     };
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
     
     struct alternative_parser_gen
     {

Modified: trunk/boost/spirit/home/classic/core/composite/composite.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/composite.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/composite.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -17,6 +17,11 @@
 
 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     ///////////////////////////////////////////////////////////////////////////
     //
     // unary class.

Modified: trunk/boost/spirit/home/classic/core/composite/difference.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/difference.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/difference.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -35,7 +35,12 @@
     //
     ///////////////////////////////////////////////////////////////////////////
     struct difference_parser_gen;
-
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     template <typename A, typename B>
     struct difference
     : public binary<A, B, parser<difference<A, B> > >
@@ -69,6 +74,10 @@
             return scan.no_match();
         }
     };
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
     
     struct difference_parser_gen
     {

Modified: trunk/boost/spirit/home/classic/core/composite/kleene_star.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/kleene_star.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/kleene_star.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -34,6 +34,11 @@
     ///////////////////////////////////////////////////////////////////////////
     struct kleene_star_parser_gen;
     
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     template <typename S>
     struct kleene_star
     : public unary<S, parser<kleene_star<S> > >
@@ -70,6 +75,10 @@
         }
     };
     
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
     struct kleene_star_parser_gen
     {
         template <typename S>

Modified: trunk/boost/spirit/home/classic/core/composite/positive.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/positive.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/positive.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -34,6 +34,11 @@
     ///////////////////////////////////////////////////////////////////////////
     struct positive_parser_gen;
     
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     template <typename S>
     struct positive
     : public unary<S, parser<positive<S> > >
@@ -73,6 +78,10 @@
             return hit;
         }
     };
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
     
     struct positive_parser_gen
     {

Modified: trunk/boost/spirit/home/classic/core/composite/sequence.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/core/composite/sequence.hpp (original)
+++ trunk/boost/spirit/home/classic/core/composite/sequence.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -36,6 +36,11 @@
     //////////////////////////////////////////////////////////////////////////
     struct sequence_parser_gen;
     
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
     template <typename A, typename B>
     struct sequence : public binary<A, B, parser<sequence<A, B> > >
     {
@@ -61,6 +66,10 @@
             return scan.no_match();
         }
     };
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
     
     struct sequence_parser_gen
     {

Modified: trunk/boost/spirit/home/classic/core/non_terminal/impl/rule.ipp
==============================================================================
--- trunk/boost/spirit/home/classic/core/non_terminal/impl/rule.ipp (original)
+++ trunk/boost/spirit/home/classic/core/non_terminal/impl/rule.ipp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -223,6 +223,11 @@
         // concrete_parser class
         //
         ///////////////////////////////////////////////////////////////////////
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
         template <typename ParserT, typename ScannerT, typename AttrT>
         struct concrete_parser : abstract_parser<ScannerT, AttrT>
         {
@@ -243,6 +248,10 @@
 
             typename ParserT::embed_t p;
         };
+
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
 
 #if BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 1
 

Modified: trunk/boost/spirit/home/classic/core/primitives/impl/numerics.ipp
==============================================================================
--- trunk/boost/spirit/home/classic/core/primitives/impl/numerics.ipp (original)
+++ trunk/boost/spirit/home/classic/core/primitives/impl/numerics.ipp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -151,6 +151,11 @@
         // initialized before calling this function.
         //
         ///////////////////////////////////////////////////////////////////////
+#if defined(BOOST_MSVC)
+#pragma warning(push)
+#pragma warning(disable:4127) //conditional expression is constant
+#endif
+
         template <typename T, int Radix>
         struct positive_accumulate
         {
@@ -351,11 +356,6 @@
         // real_parser_impl class
         //
         ///////////////////////////////////////////////////////////////////////
-#if (defined(BOOST_MSVC) && (BOOST_MSVC <= 1310))
-#pragma warning(push)
-#pragma warning(disable:4127)
-#endif
-
         template <typename RT, typename T, typename RealPoliciesT>
         struct real_parser_impl
         {
@@ -464,7 +464,7 @@
             }
         };
 
-#if (defined(BOOST_MSVC) && (BOOST_MSVC <= 1310))
+#if defined(BOOST_MSVC)
 #pragma warning(pop)
 #endif
 

Modified: trunk/boost/spirit/home/classic/meta/refactoring.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/meta/refactoring.hpp (original)
+++ trunk/boost/spirit/home/classic/meta/refactoring.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -21,6 +21,11 @@
 
 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 //
 // refactor_unary_parser class
@@ -269,6 +274,10 @@
 
 const attach_action_gen<> attach_action_d = attach_action_gen<>();
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 BOOST_SPIRIT_CLASSIC_NAMESPACE_END
 

Modified: trunk/boost/spirit/home/classic/phoenix/actor.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/phoenix/actor.hpp (original)
+++ trunk/boost/spirit/home/classic/phoenix/actor.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -124,6 +124,11 @@
 };
 
 //////////////////////////////////
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 template <typename BaseT>
 struct actor : public BaseT {
 
@@ -270,6 +275,10 @@
     operator[](B const& b) const;
 };
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 ///////////////////////////////////////////////////////////////////////////
 //
 // as_actor

Modified: trunk/boost/spirit/home/classic/phoenix/closures.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/phoenix/closures.hpp (original)
+++ trunk/boost/spirit/home/classic/phoenix/closures.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -21,6 +21,11 @@
 ///////////////////////////////////////////////////////////////////////////////
 namespace phoenix {
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 //
 // Adaptable closures
@@ -431,6 +436,10 @@
     mutable holder_t frame;
 };
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 }
    // namespace phoenix
 

Modified: trunk/boost/spirit/home/classic/phoenix/composite.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/phoenix/composite.hpp (original)
+++ trunk/boost/spirit/home/classic/phoenix/composite.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -14,6 +14,11 @@
 ///////////////////////////////////////////////////////////////////////////////
 namespace phoenix {
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 //
 // composite class
@@ -1417,6 +1422,10 @@
 
 } // namespace impl
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 } // namespace phoenix
 
 #endif

Modified: trunk/boost/spirit/home/classic/phoenix/primitives.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/phoenix/primitives.hpp (original)
+++ trunk/boost/spirit/home/classic/phoenix/primitives.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -196,6 +196,11 @@
 // a variable<T const&> object using a constant reference.
 //
 ///////////////////////////////////////////////////////////////////////////////
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 template <typename T>
 struct variable {
 
@@ -215,6 +220,10 @@
     T& var;
 };
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 //////////////////////////////////
 template <typename T>
 inline actor<variable<T> > const

Modified: trunk/boost/spirit/home/classic/phoenix/tuples.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/phoenix/tuples.hpp (original)
+++ trunk/boost/spirit/home/classic/phoenix/tuples.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -60,6 +60,11 @@
 #include <boost/call_traits.hpp>
 #include <boost/type_traits/remove_reference.hpp>
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 namespace phoenix {
 
@@ -1323,6 +1328,10 @@
 #endif
 #endif
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 } // namespace phoenix
 

Modified: trunk/boost/spirit/home/classic/utility/confix.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/utility/confix.hpp (original)
+++ trunk/boost/spirit/home/classic/utility/confix.hpp 2009-06-07 22:47:52 EDT (Sun, 07 Jun 2009)
@@ -36,6 +36,11 @@
 //
 ///////////////////////////////////////////////////////////////////////////////
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(push)
+#pragma warning(disable:4512) //assignment operator could not be generated
+#endif
+
 template<typename NestedT = non_nested, typename LexemeT = non_lexeme>
 struct confix_parser_gen;
 
@@ -71,6 +76,10 @@
     typename as_parser<CloseT>::type::embed_t close;
 };
 
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
+#pragma warning(pop)
+#endif
+
 ///////////////////////////////////////////////////////////////////////////////
 //
 // Confix parser generator template


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