mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Merge pull request #213 from mayawarrier/msvc-v140-fix
Fix for broken MSVC v140 without removing enable_if
This commit is contained in:
commit
84e2cb27e0
@ -111,9 +111,13 @@ FASTFLOAT_SIMD_RESTORE_WARNINGS
|
||||
|
||||
#endif // FASTFLOAT_SSE2
|
||||
|
||||
// dummy for compile
|
||||
//template <typename UC, FASTFLOAT_ENABLE_IF(!has_simd_opt<UC>())>
|
||||
// MSVC SFINAE is broken pre-VS2017
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1900
|
||||
template <typename UC>
|
||||
#else
|
||||
template <typename UC, FASTFLOAT_ENABLE_IF(!has_simd_opt<UC>())>
|
||||
#endif
|
||||
// dummy for compile
|
||||
uint64_t simd_read8_to_u64(UC const*) {
|
||||
return 0;
|
||||
}
|
||||
@ -215,8 +219,13 @@ FASTFLOAT_SIMD_RESTORE_WARNINGS
|
||||
|
||||
#endif // FASTFLOAT_HAS_SIMD
|
||||
|
||||
// dummy for compile
|
||||
// MSVC SFINAE is broken pre-VS2017
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1900
|
||||
template <typename UC>
|
||||
#else
|
||||
template <typename UC, FASTFLOAT_ENABLE_IF(!has_simd_opt<UC>())>
|
||||
#endif
|
||||
// dummy for compile
|
||||
bool simd_parse_if_eight_digits_unrolled(UC const*, uint64_t&) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user