mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-12 14:54:10 +00:00
fix for clang3.7.0
This commit is contained in:
parent
8f33f038d1
commit
cc5df1ee53
2 changed files with 8 additions and 8 deletions
|
@ -229,7 +229,7 @@ namespace sprout {
|
|||
}
|
||||
template<typename Engine>
|
||||
SPROUT_CXX14_CONSTEXPR result_type
|
||||
generate(Engine& eng) const {
|
||||
generate_cxx14(Engine& eng) const {
|
||||
for (; ; ) {
|
||||
RealType u = RealType();
|
||||
RealType v = static_cast<RealType>(sprout::random::uniform_01<RealType>()(eng));
|
||||
|
@ -750,8 +750,8 @@ namespace sprout {
|
|||
return use_inversion() ? RealType(0.5) < p_
|
||||
? t_ - invert(t_, 1 - p_, eng)
|
||||
: invert(t_, p_, eng)
|
||||
: RealType(0.5) < p_ ? t_ - generate(eng)
|
||||
: generate(eng)
|
||||
: RealType(0.5) < p_ ? t_ - generate_cxx14(eng)
|
||||
: generate_cxx14(eng)
|
||||
;
|
||||
}
|
||||
template<typename Engine>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue