1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

partial support (C++11 constexpr) for VC++2015

This commit is contained in:
bolero-MURAKAMI 2016-02-12 21:06:06 +09:00
parent b1b62d9a29
commit e7a79b31ea
5 changed files with 21 additions and 9 deletions

View file

@ -56,7 +56,7 @@ namespace sprout {
typename sprout::detail::div_t_traits<T>::type
>::type
div_impl(T const& numer, T const& denom) {
#if defined(_MSC_VER)
#if defined(_MSC_VER) && (_MSC_VER > 1900)
typename sprout::detail::div_t_traits<T>::type result = {numer / denom, numer % denom};
return result;
#else