Does the C++ Standard Library define this function, or do I have to resort to Boost?
I searched the web and couldn’t find anything except Boost, but I thought I’d better ask here.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Only partially.
C++11
<string>hasstd::to_stringfor the built-in types:There are also the following that go the other way around:
However, there’s nothing generic that you can use (at least not until TR2, maybe!), and nothing at all in C++03.