treewide: Switch to std::format
Reduce our dependence on fmtlib.
Change-Id: I1cc9b372aa366ae26d846470c8ab9d1d52e8db70
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/gtest/tmp.cpp b/src/gtest/tmp.cpp
index 4d06de5..d5e2ab2 100644
--- a/src/gtest/tmp.cpp
+++ b/src/gtest/tmp.cpp
@@ -1,8 +1,7 @@
-#include <fmt/format.h>
-
#include <stdplus/gtest/tmp.hpp>
#include <filesystem>
+#include <format>
namespace stdplus
{
@@ -10,7 +9,7 @@
{
TestWithTmp::TestWithTmp() :
- casedir(fmt::format(
+ casedir(std::format(
"{}/{}", SuiteTmpDir(),
::testing::UnitTest::GetInstance()->current_test_info()->name()))
{
@@ -39,7 +38,7 @@
{
dir = "/tmp";
}
- return fmt::format(
+ return std::format(
"{}/{}-{}", dir,
::testing::UnitTest::GetInstance()->current_test_suite()->name(),
getpid());