| 22 | } |
| 23 | |
| 24 | int main() |
| 25 | { |
| 26 | // get a path that is known to exist |
| 27 | fs::path cp = fs::current_path(); |
| 28 | |
| 29 | // demo: get tstring from the path |
| 30 | tstring cp_as_tstring = cp.string< tstring >(); |
| 31 | |
| 32 | // demo: pass tstring to filesystem function taking path |
| 33 | assert(fs::exists(cp_as_tstring)); |
| 34 | |
| 35 | // demo: pass tstring to user function taking path |
| 36 | func(cp_as_tstring); |
| 37 | |
| 38 | return 0; |
| 39 | } |
nothing calls this directly
no test coverage detected