[Boost-bugs] [Boost C++ Libraries] #8381: karma::uint_generator fails to compile in C++11 mode

Subject: [Boost-bugs] [Boost C++ Libraries] #8381: karma::uint_generator fails to compile in C++11 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-03 20:16:04


#8381: karma::uint_generator fails to compile in C++11 mode
-------------------------------------+--------------------------------------
 Reporter: andysem | Owner: hkaiser
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: spirit
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 After the #8361 ticket has been fixed (including my syntax fix in revision
 [83754]) karma::uint_generator fails to compile on gcc 4.7.2 with the
 following error:

 {{{
 In file included from ./boost/spirit/include/karma_uint.hpp:16:0,
                  from karma_uint_gen.cpp:1:
 ./boost/spirit/home/karma/numeric/uint.hpp: In static member function
 â€˜static bool boost::spirit::karma::any_uint_generator<T, CharEncoding,
 Tag, Radix>::generate(OutputIterator&, Context&, const Delimiter&,
 boost::spirit::unused_type)’:
 ./boost/spirit/home/karma/numeric/uint.hpp:290:13: error: static assertion
 failed: uint_not_usable_without_attribute
 }}}

 The attached code snippet demonstrates the problem if compiled with the
 following command.

 {{{
 g++ -std=c++0x -I"." -c karma_uint_gen.cpp -o karma_uint_gen
 }}}

 The code compiles fine if -std=c++0x is removed.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8381>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC