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