mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
support for VC++2015
This commit is contained in:
parent
f2c09dd3af
commit
b9440c0e9c
33 changed files with 353 additions and 253 deletions
|
@ -21,7 +21,7 @@ namespace sprout {
|
|||
//
|
||||
inline SPROUT_CONSTEXPR sprout::rational<int>
|
||||
operator"" _r(unsigned long long x) {
|
||||
return sprout::rational<int>(x);
|
||||
return sprout::rational<int>(static_cast<int>(x));
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -30,11 +30,11 @@ namespace sprout {
|
|||
//
|
||||
inline SPROUT_CONSTEXPR sprout::rational<long>
|
||||
operator"" _rl(unsigned long long x) {
|
||||
return sprout::rational<long>(x);
|
||||
return sprout::rational<long>(static_cast<long>(x));
|
||||
}
|
||||
inline SPROUT_CONSTEXPR sprout::rational<long>
|
||||
operator"" _rL(unsigned long long x) {
|
||||
return sprout::rational<long>(x);
|
||||
return sprout::rational<long>(static_cast<long>(x));
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue