I have an application which uses std::regex,it builds and runs fine on my computer. However, on ubuntu 14.04, it builds but doesn't work, because std::regex is not implemented on that old libstdc++.
I would like to #ifdef some lines in my code to workaround this issue but can seem to find a reliable way to figure out if the libstdc++ supports it or not.
I'm using cmake, so I would also be happy if I was able to get the version of the library (/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19 -> 6019).