Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57524 - in trunk: boost/spirit/home/karma/detail boost/spirit/home/karma/numeric boost/spirit/home/lex/lexer/lexertl libs/spirit/test/karma
From: daniel_james_at_[hidden]
Date: 2009-11-09 14:46:10


Author: danieljames
Date: 2009-11-09 14:46:09 EST (Mon, 09 Nov 2009)
New Revision: 57524
URL: http://svn.boost.org/trac/boost/changeset/57524

Log:
Fix a few gcc warnings. Still some long long constant warnings and an integer overflow warning.
Text files modified:
   trunk/boost/spirit/home/karma/detail/output_iterator.hpp | 2 +-
   trunk/boost/spirit/home/karma/numeric/real_policies.hpp | 2 +-
   trunk/boost/spirit/home/lex/lexer/lexertl/static_functor_data.hpp | 2 +-
   trunk/libs/spirit/test/karma/real_numerics.cpp | 2 +-
   4 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/spirit/home/karma/detail/output_iterator.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/detail/output_iterator.hpp (original)
+++ trunk/boost/spirit/home/karma/detail/output_iterator.hpp 2009-11-09 14:46:09 EST (Mon, 09 Nov 2009)
@@ -386,7 +386,7 @@
           : sink(sink_)
         {}
         output_iterator(output_iterator const& rhs)
- : base_iterator(rhs), sink(rhs.sink)
+ : base_iterator(rhs), boost::noncopyable(), sink(rhs.sink)
         {}
 
         output_iterator& operator*() { return *this; }

Modified: trunk/boost/spirit/home/karma/numeric/real_policies.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/real_policies.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/real_policies.hpp 2009-11-09 14:46:09 EST (Mon, 09 Nov 2009)
@@ -102,7 +102,7 @@
         // adjust the required behavior depending on the value of
         // this number.
         ///////////////////////////////////////////////////////////////////////
- static bool const force_sign(T)
+ static bool force_sign(T)
         {
             return false;
         }

Modified: trunk/boost/spirit/home/lex/lexer/lexertl/static_functor_data.hpp
==============================================================================
--- trunk/boost/spirit/home/lex/lexer/lexertl/static_functor_data.hpp (original)
+++ trunk/boost/spirit/home/lex/lexer/lexertl/static_functor_data.hpp 2009-11-09 14:46:09 EST (Mon, 09 Nov 2009)
@@ -62,7 +62,7 @@
  
             typedef std::size_t (*next_token_functor)(std::size_t&,
                 Iterator const&, Iterator&, Iterator const&, std::size_t&);
- typedef char_type const* const (*get_state_name_type)(std::size_t);
+ typedef char_type const* (*get_state_name_type)(std::size_t);
 
             // initialize the shared data
             template <typename IterData>

Modified: trunk/libs/spirit/test/karma/real_numerics.cpp
==============================================================================
--- trunk/libs/spirit/test/karma/real_numerics.cpp (original)
+++ trunk/libs/spirit/test/karma/real_numerics.cpp 2009-11-09 14:46:09 EST (Mon, 09 Nov 2009)
@@ -66,7 +66,7 @@
 struct signed_policy : boost::spirit::karma::real_policies<T>
 {
     // we want to always have a sign generated
- static bool const force_sign(T)
+ static bool force_sign(T)
     {
         return true;
     }


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