Files
yuzu/externals/vcpkg/buildtrees/boost-filesystem/src/ost-1.79.0-f01c77d79c.clean/test/issues/10641.cpp
2022-11-05 15:35:56 +01:00

23 lines
548 B
C++
Executable File

#include <iostream>
#include <boost/filesystem/path.hpp>
using namespace std;
namespace fs = boost::filesystem;
int main(int argc, char** argv)
{
try
{
fs::path my_path("test/test.txt");
cout << "current path is " << my_path << endl;
cout << "parent path is " << my_path.parent_path() << endl;
}
catch (std::exception& e)
{
cerr << endl
<< "Error during execution: " << e.what() << endl
<< endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}