Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2008-01-20 08:59:13


Neal Becker wrote:

> typedef std::complex<double> complex_t;
> accumulator_set<complex_t,stats<tag::mean,tag::moment<2> > >
>
> results in what may be the longest error messages ever. Should this work?
>

A little more info:
This is gcc-4.1.2:

 In instantiation
of 'boost::numeric::functional::result_of_divides<std::complex<double>,
long unsigned int, void>::nested':
[... lots of instantiated from ...]
/usr/local/src/boost.hg/boost/accumulators/numeric/functional.hpp:183:
error: no match for 'operator/'
in 'boost::numeric::functional::detail::lvalue_of [with T =
std::complex<double>]() / boost::numeric::functional::detail::lvalue_of
[with T = long unsigned int]()'


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk