Skip to content

Test enforce-checks-test.cc fails after implementing P2499 #3030

Description

@strega-nil-ms

Hi! Friendly neighborhood STL implementor here 😸

After implementing P2499R0 in microsoft/STL#2947, the test enforce-checks-test now fails.

Compiler output
C:\Users\nimazzuc\projects\fmt\include\fmt\core.h(2742): error C2039: 'parse': is not a member of 'fmt::v9::detail::fallback_formatter<stripped_type,char_type,void>'
C:\Users\nimazzuc\projects\fmt\include\fmt\core.h(2741): note: see declaration of 'fmt::v9::detail::fallback_formatter<stripped_type,char_type,void>'
C:\Users\nimazzuc\projects\fmt\include\fmt\core.h(2947): note: see reference to function template instantiation 'const char *fmt::v9::detail::parse_format_specs<std::vector<char,std::allocator<char>>,fmt::v9::detail::compile_parse_context<Char,ErrorHandler>>(ParseContext &)' being compiled
        with
        [
            Char=char,
            ErrorHandler=fmt::v9::detail::error_handler,
            ParseContext=fmt::v9::detail::compile_parse_context<char,fmt::v9::detail::error_handler>
        ]
C:\Users\nimazzuc\projects\fmt\include\fmt\core.h(2947): note: while compiling class template member function 'fmt::v9::detail::format_string_checker<Char,fmt::v9::detail::error_handler,std::vector<char,std::allocator<char>>>::format_string_checker(fmt::v9::basic_string_view<Char>,ErrorHandler)'
        with
        [
            Char=char,
            ErrorHandler=fmt::v9::detail::error_handler
        ]
C:\Users\nimazzuc\projects\fmt\include\fmt\core.h(3141): note: see reference to class template instantiation 'fmt::v9::detail::format_string_checker<Char,fmt::v9::detail::error_handler,std::vector<char,std::allocator<char>>>' being compiled
        with
        [
            Char=char
        ]
.\test\enforce-checks-test.cc(55): note: see reference to function template instantiation 'fmt::v9::basic_format_string<char,std::vector<char,std::allocator<char>> &>::basic_format_string<test_range::<lambda_1>::()::FMT_COMPILE_STRING,0>(const S &)' being compiled
        with
        [
            S=test_range::<lambda_1>::()::FMT_COMPILE_STRING
        ]

Before, it worked because basic_string_view<char> was convertible from any contiguous range of char; now, it is only constructible from any contiguous range of char.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions