Skip to content

Commit

Permalink
Also allow compiled format for clang >= 12
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Jun 8, 2024
1 parent 0f6e716 commit c59b8f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ import std;
#elif defined(__cpp_nontype_template_args) && \
__cpp_nontype_template_args >= 201911L
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
#elif FMT_CLANG_VERSION >= 1200 && FMT_CPLUSPLUS >= 202002L
// clang 12 already has enough support for {fmt} to use.
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
#else
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 0
#endif
Expand Down

0 comments on commit c59b8f1

Please sign in to comment.