one thing that bugs me about c++

Walter Bright newshound1 at digitalmars.com
Thu Dec 13 19:11:40 PST 2007


Neal Becker wrote:
> template<typename T>
> inline vector<typename scalar<T>::type> mag_sqr (vector<T> const& z) {
>   typedef typename scalar<T>::type out_t;
>   vector<out_t> out (z.size());
>   std::transform (z.begin(), z.end(), out.begin(), mag_sqr1<T>);
>   return out;
> }

That just makes my eyeballs hurt.



More information about the Digitalmars-d mailing list