Skip to content

Commit

Permalink
Also check c++ standard
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Jun 8, 2024
1 parent 6eb9cbe commit 1dd1a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ import std;
#elif defined(__cpp_nontype_template_args) && \
__cpp_nontype_template_args >= 201911L
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
#elif defined(__clang_major__) && __clang_major__ >= 12
#elif defined(__clang_major__) && __clang_major__ >= 12 && \
__cplusplus >= 202002L
// clang 12 already has enough support for {fmt} to use.
# define FMT_USE_NONTYPE_TEMPLATE_ARGS 1
#else
Expand Down

0 comments on commit 1dd1a62

Please sign in to comment.