Add FMT_ENABLE_IF_T

for definitions of functions which declared using FMT_ENABLE_IF
This commit is contained in:
mocabe
2019-05-09 01:38:21 +09:00
committed by Victor Zverovich
parent 3fd134be03
commit 6828d549e8
4 changed files with 8 additions and 12 deletions

View File

@@ -682,8 +682,7 @@ template <int GRISU_VERSION> struct grisu_shortest_handler {
}
};
template <typename Double, typename std::enable_if<
sizeof(Double) == sizeof(uint64_t), int>::type>
template <typename Double, FMT_ENABLE_IF_T(sizeof(Double) == sizeof(uint64_t))>
FMT_FUNC bool grisu_format(Double value, buffer<char>& buf, int precision,
unsigned options, int& exp) {
FMT_ASSERT(value >= 0, "value is negative");