Using C++, I need to detect whether given path (file name) is absolute or relative. I can use Windows API, but don\'t want to use third-party libraries like Boost, since I need
I have boost 1.63 and VS2010 (c++ pre c++11), and the following code works.
std::filesystem::path path(winPathString); // Construct the path from a string.
if (path.is_absolute()) {
// Arriving here if winPathString = "C:/tmp".
}