Zend certified PHP/Magento developer

Centos7 g++ “to_string is not in a member of std”

I have some pretty standard C++ code, in which I am using to_string to add a sting and an int together, like this:

string s = to_string(a) + "!";

When I try to compile this using g++ on Centos7, I get the error “to_string is not in a member of std”. What do I need to do? Why is this not working?