Replace src_loc with std::soource_location

This commit is contained in:
Elad Ashkenazi 2024-05-21 10:34:51 +03:00
parent 2d32ba5ca2
commit a2dcbb9c13
17 changed files with 146 additions and 290 deletions

View file

@ -1163,12 +1163,12 @@ void fs::sync()
#endif
}
[[noreturn]] void fs::xnull(const src_loc& loc)
[[noreturn]] void fs::xnull(std::source_location loc)
{
fmt::throw_exception("Null object.%s", loc);
}
[[noreturn]] void fs::xfail(const src_loc& loc)
[[noreturn]] void fs::xfail(std::source_location loc)
{
fmt::throw_exception("Unexpected fs::error %s%s", g_tls_error, loc);
}