2018-12-05 19:12:02 +11:00
|
|
|
#include <filesystem>
|
2019-07-01 10:49:58 +10:00
|
|
|
#include <iostream>
|
2017-01-17 21:28:04 +11:00
|
|
|
|
|
|
|
int
|
|
|
|
main (int argc, char **argv)
|
|
|
|
{
|
|
|
|
(void)argc;
|
|
|
|
(void)argv;
|
|
|
|
|
2019-07-01 10:49:58 +10:00
|
|
|
// Instantiating a path isn't enough for clang. We need to call a method
|
|
|
|
// implemented in the external library; like 'stem'.
|
2018-12-05 19:12:02 +11:00
|
|
|
std::filesystem::path p { "foo" };
|
2019-07-01 10:49:58 +10:00
|
|
|
std::cout << p.stem () << '\n';
|
2017-01-17 21:28:04 +11:00
|
|
|
return 0;
|
|
|
|
}
|