
2013/3/15 Alain Leblanc <aalebl@gmail.com>:
Here's some code that has been compiling till at least 1.50, and starting long before. I isolated the part that breaks to create a program.
Here it is: Just taking a std::vector of int and copying into strings.
#include <boost/lexical_cast.hpp> #include <vector> #include <string>
using namespace std;
int main (int, char **) { vector<int> values; vector<string> ret; std::transform(values.begin(), values.end(), ret.begin(), boost::lexical_cast<std::string, int>); }
That is strange, I remember fixing that... I'll check everything once more. Until then, you may try this workaround: int main (int, char **) { vector<int> values; vector<string> ret; typedef std::string(*f2)(const int&); f2 p2 = &boost::lexical_cast<std::string, int>; std::transform(values.begin(), values.end(), ret.begin(), p2); } -- Best regards, Antony Polukhin