Add parenthesis to FMT_ENABLE_IF (fixes #1186)
This commit is contained in:
parent
d54e64b3c8
commit
03a3f7d57e
@ -206,7 +206,7 @@ using enable_if_t = typename std::enable_if<B, T>::type;
|
||||
|
||||
// An enable_if helper to be used in template parameters which results in much
|
||||
// shorter symbols: https://godbolt.org/z/sWw4vP.
|
||||
#define FMT_ENABLE_IF(...) enable_if_t<__VA_ARGS__, int> = 0
|
||||
#define FMT_ENABLE_IF(...) enable_if_t<(__VA_ARGS__), int> = 0
|
||||
|
||||
namespace internal {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user