mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-04 14:14:09 +00:00
fix rational: for clang
This commit is contained in:
parent
c22735b212
commit
071217f1d4
13 changed files with 66 additions and 86 deletions
|
@ -20,9 +20,8 @@ namespace sprout {
|
|||
inline SPROUT_CONSTEXPR sprout::rational<IntType>
|
||||
abs(sprout::rational<IntType> const& x) {
|
||||
return x.numerator() >= IntType(0) ? x
|
||||
: sprout::detail::make_rational<IntType>(
|
||||
-x.numerator(), x.denominator(),
|
||||
sprout::detail::rational_private_constructor_tag()
|
||||
: sprout::detail::rational_construct_access<IntType>::raw_construct(
|
||||
-x.numerator(), x.denominator()
|
||||
)
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue