mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
cannot compile this code ( http://melpon.org/wandbox/permlink/dMPGXatLnTh3o3Fk ) by my environment
This commit is contained in:
parent
274122efb2
commit
0009f778e6
2 changed files with 16 additions and 0 deletions
|
@ -241,9 +241,17 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR FloatType
|
||||
str_to_float(CStrIterator str, CharPtr* endptr) {
|
||||
return !endptr ? sprout::detail::str_to_float<FloatType>(str)
|
||||
#ifdef __MINGW32__
|
||||
: std::is_same<typename std::remove_cv<FloatType>::type, float>::value ? strtof(&*str, endptr)
|
||||
#else
|
||||
: std::is_same<typename std::remove_cv<FloatType>::type, float>::value ? std::strtof(&*str, endptr)
|
||||
#endif
|
||||
: std::is_same<typename std::remove_cv<FloatType>::type, double>::value ? std::strtod(&*str, endptr)
|
||||
#ifdef __MINGW32__
|
||||
: strtold(&*str, endptr)
|
||||
#else
|
||||
: std::strtold(&*str, endptr)
|
||||
#endif
|
||||
;
|
||||
}
|
||||
} // namespace detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue