Skip to content

Commit

Permalink
Fix compilation error under MSVC 19.21 (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
mocabe authored and vitaut committed May 8, 2019
1 parent 6828d54 commit 118d8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@

// An enable_if helper to be used in template parameters. enable_if in template
// parameters results in much shorter symbols: https://godbolt.org/z/sWw4vP.
#define FMT_ENABLE_IF_T(...) typename std::enable_if<__VA_ARGS__, int>::type
#define FMT_ENABLE_IF_T(...) typename std::enable_if<(__VA_ARGS__), int>::type
#define FMT_ENABLE_IF(...) FMT_ENABLE_IF_T(__VA_ARGS__) = 0

FMT_BEGIN_NAMESPACE
Expand Down

0 comments on commit 118d8bc

Please sign in to comment.