From 2dd4fa8742fdac36468f8d8ea3e06e78215551f8 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 26 Sep 2023 12:42:37 -0700 Subject: [PATCH] Remove an ostream hack incompatible with libc++ 17 --- include/fmt/ostream.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/fmt/ostream.h b/include/fmt/ostream.h index e5ae9e18bb0d..7d194227c197 100644 --- a/include/fmt/ostream.h +++ b/include/fmt/ostream.h @@ -13,8 +13,6 @@ #if defined(_WIN32) && defined(__GLIBCXX__) # include # include -#elif defined(_WIN32) && defined(_LIBCPP_VERSION) -# include <__std_stream> #endif #include "format.h" @@ -37,10 +35,6 @@ class file_access { template class file_access; auto get_file(std::filebuf&) -> FILE*; -#elif defined(_WIN32) && defined(_LIBCPP_VERSION) -template class file_access, - &std::__stdoutbuf::__file_>; -auto get_file(std::__stdoutbuf&) -> FILE*; #endif inline bool write_ostream_unicode(std::ostream& os, fmt::string_view data) { @@ -57,9 +51,6 @@ inline bool write_ostream_unicode(std::ostream& os, fmt::string_view data) { else return false; if (c_file) return write_console(c_file, data); -#elif defined(_WIN32) && defined(_LIBCPP_VERSION) - if (auto* buf = dynamic_cast*>(os.rdbuf())) - if (FILE* f = get_file(*buf)) return write_console(f, data); #else ignore_unused(os, data); #endif