Skip to content

FMT_USE_NONTYPE_TEMPLATE_ARGS detection is wrong on trunk #3935

Description

@timsong-cpp

With trunk GCC and -std=c++2c :

#include <fmt/compile.h>
using namespace fmt::literals;

int main() {
    fmt::print(""_cf);
}

does not compile with trunk fmt but does with 10.2.1:

https://gcc.godbolt.org/z/4WsvGP6bs

fmt/include/fmt/base.h

Lines 143 to 144 in aa52eb7

#elif FMT_GCC_VERSION >= 903 && FMT_CPLUSPLUS >= 201709L
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 0
looks suspicious.

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