Remove obsolete msvc workarounds (#3388)

This bug in the modules implementation is fixed since at least msvc 19.34, possibly even earlier like 19.32.
This commit is contained in:
Daniela Engert 2023-04-20 02:09:51 +02:00 committed by GitHub
parent 0489c19dcb
commit 18e7a2532b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View File

@ -2496,9 +2496,6 @@ FMT_CONSTEXPR auto parse_replacement_field(const Char* begin, const Char* end,
template <bool IS_CONSTEXPR, typename Char, typename Handler> template <bool IS_CONSTEXPR, typename Char, typename Handler>
FMT_CONSTEXPR FMT_INLINE void parse_format_string( FMT_CONSTEXPR FMT_INLINE void parse_format_string(
basic_string_view<Char> format_str, Handler&& handler) { basic_string_view<Char> format_str, Handler&& handler) {
// Workaround a name-lookup bug in MSVC's modules implementation.
using detail::find;
auto begin = format_str.data(); auto begin = format_str.data();
auto end = begin + format_str.size(); auto end = begin + format_str.size();
if (end - begin < 32) { if (end - begin < 32) {

View File

@ -4492,18 +4492,6 @@ FMT_BEGIN_DETAIL_NAMESPACE
template <typename Char> template <typename Char>
void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt, void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
typename vformat_args<Char>::type args, locale_ref loc) { typename vformat_args<Char>::type args, locale_ref loc) {
// workaround for msvc bug regarding name-lookup in module
// link names into function scope
using detail::arg_formatter;
using detail::buffer_appender;
using detail::custom_formatter;
using detail::default_arg_formatter;
using detail::get_arg;
using detail::locale_ref;
using detail::parse_format_specs;
using detail::to_unsigned;
using detail::type;
using detail::write;
auto out = buffer_appender<Char>(buf); auto out = buffer_appender<Char>(buf);
if (fmt.size() == 2 && equal2(fmt.data(), "{}")) { if (fmt.size() == 2 && equal2(fmt.data(), "{}")) {
auto arg = args.get(0); auto arg = args.get(0);