stdplus/exception: Use std::print instead of fmt
Change-Id: Ie985f93284e05b0df2fe8b69fd92ae700060fbcf
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/include/stdplus/exception.hpp b/include/stdplus/exception.hpp
index 6fe4d47..c06ff9f 100644
--- a/include/stdplus/exception.hpp
+++ b/include/stdplus/exception.hpp
@@ -1,5 +1,5 @@
#pragma once
-#include <fmt/format.h>
+#include <stdplus/print.hpp>
#include <source_location>
#include <system_error>
@@ -33,13 +33,13 @@
}
catch (const std::exception& e)
{
- fmt::print(stderr, "Ignoring({}:{} {}): {}\n", file, line, func,
- e.what());
+ stdplus::print(stderr, "Ignoring({}:{} {}): {}\n", file, line, func,
+ e.what());
}
catch (...)
{
- fmt::print(stderr, "Ignoring({}:{} {}): Invalid Error\n", file,
- line, func);
+ stdplus::print(stderr, "Ignoring({}:{} {}): Invalid Error\n", file,
+ line, func);
}
using Ret = std::invoke_result_t<decltype(f), decltype(args)...>;
if constexpr (!std::is_same_v<void, Ret>)