Boost logo

Boost Users :

From: chun ping wang (cablepuff_at_[hidden])
Date: 2007-08-20 18:02:13


I fix this problem and got a new one.

typename boost::assign::list_of<std:
>
> :complex<T> >.repeat_fun(num_elems, next<T>(num_elems));

What i get is an internal compiler error on make_typename_type

On 8/19/07, chun ping wang <cablepuff_at_[hidden]> wrote:
>
> heres the code.
>
> template <class T>
> class next
> {
> public:
> next(const int& k) : k_(k), count(0) {}
> std::complex<T> operator()()
> {
> return std::complex<T>((( 2.0*PI*k_/Random::randint(k_,
> 2*k_))*(++count)), 0);
> }
> private:
> static const double PI = 3.141592654;
> int k_;
> int count;
> };
>
> when i tried to do
> boost::assign::list_of<std::complex<T> >.repeat_func(num_elems,
> next<T>(num_elems));
>
> I get an error about insuffiecnet contextual information to determine
> type.
>



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