Is there a way to expand environment variables in a path? For example:
std::string myPath = expandEnv("$SOME_VAR/dir/")
So that when myPath is printed it contains the absolute path that would result from expanding $SOME_VAR ? I remember seeing this done somewhere, or might have implemented it myself, but I can't remember where.
I know Windows have it, is there anything in C++ STL, Boost or Linux headers that does that?