mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Add FMT_ENABLE_IF_T
for definitions of functions which declared using FMT_ENABLE_IF
This commit is contained in:
@@ -227,7 +227,8 @@
|
||||
|
||||
// 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(...) typename std::enable_if<__VA_ARGS__, int>::type = 0
|
||||
#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
|
||||
namespace internal {
|
||||
|
||||
Reference in New Issue
Block a user