I want to transform a vector of type T to a vectorof type K. I tried this, but it doesn't work:
transform(vec.rbegin(),vec.rend(),vecNew.begin(),boost::bind(static_cast<K>(),_1));
I get the error: "expected primary-expression before ‘)’ token". What am I doing wrong?