you missed #include \<boost/lexical_cast.hpp\>