Files
ResInsight/ThirdParty/boost-Subset/libs/filesystem/test/issues/10641.cpp
Magne Sjaastad 2b4efc4b5c #1398 Removed dependency on system boost, added subset of boost to ThirdParty
Added a subset of boost to ThirdParty folder. Code extracted from version boost version 1.59.0
2017-04-05 08:38:59 +02:00

21 lines
470 B
C++

#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;
}