Skip to content

C++20 compile error #3500

Description

@eaglewangy

Ubuntu 20.04

Using C++ 20 . Errors below:

home/xxxxx/code/xxxx/build/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h:2988:22: error: ‘constexpr void fmt::v9::basic_format_parse_context<Char, ErrorHandler>::on_error(const char*) [with Char = char; ErrorHandler = fmt::v9::detail::error_handler]’ called in a constant expression 2988 | context_.on_error(message); | ~~~~~~~~~~~~~~~~~^~~~~~~~~ /home/xxxxx/code/xxx/build/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h:717:22: note: ‘constexpr void fmt::v9::basic_format_parse_context<Char, ErrorHandler>::on_error(const char*) [with Char = char; ErrorHandler = fmt::v9::detail::error_handler]’ is not usable as a ‘constexpr’ function because: 717 | FMT_CONSTEXPR void on_error(const char* message) { | ^~~~~~~~ /home/xxxx/code/xxx/build/_deps/spdlog-src/include/spdlog/fmt/bundled/core.h:718:27: error: call to non-‘constexpr’ function ‘void fmt::v9::detail::error_handler::on_error(const char*)’ 718 | ErrorHandler::on_error(message);

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions