Opened 13 years ago

Closed 13 years ago

#3201 closed Bugs (fixed)

Error compiling example

Reported by: David Doria <daviddoria@…> Owned by: Eric Niebler
Milestone: Boost 1.40.0 Component: accumulator
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

When building the examples with cmake, I get the following error:

[ 58%] Building CXX object

libs/accumulators/example/CMakeFiles/accumulators-accumulators_example.dir/main.cpp.o /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp: In function ‘void example1()’: /home/doriad/src/boost-trunk/boost/accumulators/statistics_fwd.hpp:87: error: ‘template<int N> struct boost::accumulators::tag::moment’ is not a function, /home/doriad/src/boost-trunk/boost/accumulators/statistics/moment.hpp:104: error: conflict with ‘template<int T2, class Arg1, class A0, class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9, class A10, class A11, class A12, class A13, class A14> typename boost::accumulators::detail::extractor_result<Arg1, boost::accumulators::tag::moment<T2> >::type boost::accumulators::extract::moment(const Arg1&, const A0&, const A1&, const A2&, const A3&, const A4&, const A5&, const A6&, const A7&, const A8&, const A9&, const A10&, const A11&, const A12&, const A13&, const A14&)’ /home/doriad/src/boost-trunk/libs/accumulators/example/main.cpp:63: error: in call to ‘moment’

Change History (2)

comment:1 by Eric Niebler, 13 years ago

I cannot reproduce this error with either gcc 3.4 or gcc 4.3. What compiler are you using?

comment:2 by Eric Niebler, 13 years ago

Resolution: fixed
Status: newclosed

Oh, I see. The problem happens with gcc-4.4. Some strange name-lookup issue. I've fixed it in changeset [55076]. I'll let the tests cycle and merge it to the release branch in time for Boost 1.40.

Note: See TracTickets for help on using tickets.