Skip to content

Commit

Permalink
Fix VS2019 compilation issue (fmtlib#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
mocabe committed Jun 3, 2019
1 parent 8570ec1 commit fd9f1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ using enable_if_t = typename std::enable_if<B, T>::type;

// enable_if helpers to be used in template parameters which results in much
// shorter symbols: https://godbolt.org/z/sWw4vP.
#define FMT_ENABLE_IF_T(...) enable_if_t<__VA_ARGS__, int>
// Also include fix for VS2019 compilation issue (see #1140 and #1186).
#define FMT_ENABLE_IF_T(...) enable_if_t<(__VA_ARGS__), int>
#define FMT_ENABLE_IF(...) FMT_ENABLE_IF_T(__VA_ARGS__) = 0

namespace internal {
Expand Down

0 comments on commit fd9f1bf

Please sign in to comment.