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/net/addr/subnet.cpp b/src/net/addr/subnet.cpp
index 90fb702..1feb000 100644
--- a/src/net/addr/subnet.cpp
+++ b/src/net/addr/subnet.cpp
@@ -1,7 +1,6 @@
-#include <fmt/format.h>
-
#include <stdplus/net/addr/subnet.hpp>
+#include <format>
#include <stdexcept>
namespace stdplus
@@ -12,7 +11,7 @@
void invalidSubnetPfx(std::size_t pfx)
{
- throw std::invalid_argument(fmt::format("Invalid subnet prefix {}", pfx));
+ throw std::invalid_argument(std::format("Invalid subnet prefix {}", pfx));
}
template class Subnet46<In4Addr, uint8_t>;