Payload

Upgrading the Filesystem TS

An Outcome based solution to the dual overload problem is straightforward: namespace filesystem2 { // Error code + paths related to a failure. Also causes ADL discovery to check this namespace. struct failure_info { std::error_code ec; path path1, path2; }; // Tell Outcome that failure_info is to be treated as a std::error_code inline const std::error_code &make_error_code(const failure_info &fi) { return fi.ec; } // Localise an outcome implementation specific to this namespace. »