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 a3d9597 commit 6eb9cbe
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 @@ -145,6 +145,9 @@ 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
// 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 6eb9cbe

Please sign in to comment.