[accumulator] Problem with 'droppable_accumulator.hpp' (rev. 77432)

Hello, I have a problem when compiling with the current trunk version (rev. 77432) of Boost.Accumulator: In file included from projects/boost-trunk/boost/accumulators/framework/accumulator_set.hpp:28:0, from projects/boost-trunk/boost/accumulators/accumulators.hpp:12, ... projects/boost-trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp: In copy constructor 'boost::accumulators::droppable_accumulator<Accumulator>::droppable_accumulator(const boost::accumulators::droppable_accumulator<Accumulator>&)': projects/boost-trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp:173:54: error: expected type-specifier projects/boost-trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp:173:54: error: expected '>' projects/boost-trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp:173:54: error: expected '(' projects/boost-trunk/boost/accumulators/framework/accumulators/droppable_accumulator.hpp:173:82: error: expected ')' before 'const' My system is: OS: Fedora 14 x86_64 Compiler: GCC 4.6.1 Compiler's Flags: --ansi -pedantic -Wall -Wextra I think you need to change line 173: : droppable_accumulator::base(*static_cast<droppable_accumulator::base const *>(&that)) with the following (note the addition of "typename") : droppable_accumulator::base(*static_cast<typename droppable_accumulator::base const *>(&that)) After this addition all seems to work. Could you fix it, please? Thank you very much. Best, -- Marco

On 3/20/2012 8:14 AM, sguazt wrote:
I think you need to change line 173: : droppable_accumulator::base(*static_cast<droppable_accumulator::base const *>(&that))
with the following (note the addition of "typename") : droppable_accumulator::base(*static_cast<typename droppable_accumulator::base const *>(&that))
After this addition all seems to work.
Could you fix it, please?
Fixed. Some day I'll learn to test with more than one compiler before committing anything. :-P -- Eric Niebler BoostPro Computing http://www.boostpro.com

On Wed, Mar 21, 2012 at 4:48 PM, Eric Niebler <eric@boostpro.com> wrote:
On 3/20/2012 8:14 AM, sguazt wrote:
I think you need to change line 173: : droppable_accumulator::base(*static_cast<droppable_accumulator::base const *>(&that))
with the following (note the addition of "typename") : droppable_accumulator::base(*static_cast<typename droppable_accumulator::base const *>(&that))
After this addition all seems to work.
Could you fix it, please?
Fixed. Some day I'll learn to test with more than one compiler before committing anything. :-P
No problem. I think we (Boost community) can do it for you as well. ;) Cheers, -- Marco
participants (2)
-
Eric Niebler
-
sguazt