MCPcopy Create free account
hub / github.com/boostorg/filesystem / main

Function main

test/equivalent.cpp:17–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <exception>
16
17int main(int argc, char* argv[])
18{
19 boost::filesystem::path::default_name_check(boost::filesystem::native);
20 if (argc != 3)
21 {
22 std::cout << "Usage: equivalent path1 path2\n";
23 return 2;
24 }
25
26 bool eq;
27 try
28 {
29 eq = boost::filesystem::equivalent(argv[1], argv[2]);
30 }
31 catch (const std::exception& ex)
32 {
33 std::cout << ex.what() << "\n";
34 return 3;
35 }
36
37 std::cout << (eq ? "Paths are equivalent\n" : "Paths are not equivalent\n");
38 return !eq;
39}

Callers

nothing calls this directly

Calls 2

equivalentFunction · 0.85
whatMethod · 0.80

Tested by

no test coverage detected