include: Improve libc++ compat
Avoid ambiguous name lookup errors when building with libc++
Change-Id: I032a75777950659471c64bf294b555049131da8d
Signed-off-by: Peter Foley <pefoley@google.com>
diff --git a/include/stdplus/zstring.hpp b/include/stdplus/zstring.hpp
index d36b4dc..a7cd8c6 100644
--- a/include/stdplus/zstring.hpp
+++ b/include/stdplus/zstring.hpp
@@ -2,6 +2,7 @@
#include <fmt/core.h>
#include <cstddef>
+#include <format>
#include <limits>
#include <string>
#include <type_traits>
@@ -266,9 +267,6 @@
namespace std
{
-template <typename T, typename CharT>
-struct formatter;
-
template <typename CharT, typename Traits>
struct formatter<stdplus::basic_zstring<CharT, Traits>,
std::remove_const_t<CharT>> :
diff --git a/include/stdplus/zstring_view.hpp b/include/stdplus/zstring_view.hpp
index e1d180f..1a478cb 100644
--- a/include/stdplus/zstring_view.hpp
+++ b/include/stdplus/zstring_view.hpp
@@ -371,9 +371,6 @@
namespace std
{
-template <typename T, typename CharT>
-struct formatter;
-
template <typename CharT, typename Traits>
struct formatter<stdplus::basic_zstring_view<CharT, Traits>, CharT> :
formatter<basic_string_view<CharT>, CharT>