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:
parent
b1b62d9a29
commit
e7a79b31ea
5 changed files with 21 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue