aboutsummaryrefslogtreecommitdiff
path: root/zencore/except.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-10 12:07:03 +0100
committerMartin Ridgers <[email protected]>2022-01-10 13:22:28 +0100
commit9086231f3923c0df6d9ef817441bfae5e134e8ff (patch)
tree739a41ca51910d9319cb6c04af435bf9b4c6d5cd /zencore/except.cpp
parentVcpkg's manifest mode is no longer in use (diff)
downloadzen-9086231f3923c0df6d9ef817441bfae5e134e8ff.tar.xz
zen-9086231f3923c0df6d9ef817441bfae5e134e8ff.zip
Converted use of _format UDL to fmt::format
Diffstat (limited to 'zencore/except.cpp')
-rw-r--r--zencore/except.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp
index b4ad5acf2..2749d1984 100644
--- a/zencore/except.cpp
+++ b/zencore/except.cpp
@@ -79,9 +79,8 @@ GetSystemErrorAsString(uint32_t ErrorCode)
void
ThrowLastErrorImpl(std::string_view Message, const std::source_location& Location)
{
- using namespace fmt::literals;
throw std::system_error(std::error_code(zen::GetLastError(), std::system_category()),
- "{}({}): {}"_format(Location.file_name(), Location.line(), Message));
+ fmt::format("{}({}): {}", Location.file_name(), Location.line(), Message));
}
#else
void