|
Boost Users : |
Subject: Re: [Boost-users] [accumulators] Need help
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-20 13:12:37
AMDG
Neal Becker wrote:
> I'm trying to define an accumulator for complex types, abs_sqr. The test program is attached. I get an error from gcc-4.3.2 which I've never seen, and is not informative:
>
> test_acc.cc:39: error: argument dependent lookup finds âstruct boost::accumulators::tag::abs_sqrâ
> test_acc.cc:48: error: in call to âabs_sqrâ
>
What do you want this to do?
template<typename result_t, typename acc_t>
inline result_t get_abs_sqr (acc_t const& acc) {
return abs_sqr (acc);
}
There is no function called abs_sqr.
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net