Add back FMT_ENABLE_IF_T from PR #1150
This commit is contained in:
parent
3b9b5adeda
commit
10d00346ba
@ -206,7 +206,8 @@ 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_T(...) enable_if_t<(__VA_ARGS__), int>
|
||||
#define FMT_ENABLE_IF(...) FMT_ENABLE_IF_T(__VA_ARGS__) = 0
|
||||
|
||||
namespace internal {
|
||||
|
||||
|
||||
@ -674,7 +674,7 @@ template <int GRISU_VERSION> struct grisu_shortest_handler {
|
||||
}
|
||||
};
|
||||
|
||||
template <typename Double, enable_if_t<sizeof(Double) == sizeof(uint64_t), int>>
|
||||
template <typename Double, FMT_ENABLE_IF_T(sizeof(Double) == sizeof(uint64_t))>
|
||||
FMT_API bool grisu_format(Double value, buffer<char>& buf, int precision,
|
||||
unsigned options, int& exp) {
|
||||
FMT_ASSERT(value >= 0, "value is negative");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user