boost assign: insufficent type error.

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.

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@gmail.com> 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.
participants (1)
-
chun ping wang