#include #include using namespace std; using namespace boost::filesystem; static void gvDisplayPath(const char* apDescription, const char* apPath) { path vPath(apPath); vPath.make_preferred(); cout << apDescription << ":" << endl << endl << " generic_string = \"" << vPath.generic_string() << "\"" << endl << " native = " << vPath.native() << endl; cout << endl; } int main() { gvDisplayPath("Current directory path", current_path().string().c_str()); gvDisplayPath("Parent of current directory path", current_path().remove_filename().string().c_str()); return 0; }