This is a seemingly simple problem, but I'm having difficulty coming up with an answer. I have a float value that needs to be put into a std::string, like so:
float val = 2.5;
std::string my_val = val; // error here
Obviously they're of different types. How do I convert from float to string?
All help is appreciated.