mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
fix config for C++14
This commit is contained in:
parent
3d89eae1e9
commit
d0d2b677bc
20 changed files with 41 additions and 14 deletions
|
@ -41,6 +41,7 @@ namespace sprout {
|
|||
SPROUT_CONSTEXPR param_type()
|
||||
: p_(RealType(0.5))
|
||||
{}
|
||||
param_type(param_type const&) = default;
|
||||
explicit SPROUT_CONSTEXPR param_type(RealType p_arg)
|
||||
: p_((SPROUT_ASSERT(RealType(0) < p_arg), SPROUT_ASSERT(p_arg < RealType(1)), p_arg))
|
||||
{}
|
||||
|
@ -105,6 +106,7 @@ namespace sprout {
|
|||
: p_(RealType(0.5))
|
||||
, log_1mp_(init_log_1mp(RealType(0.5)))
|
||||
{}
|
||||
geometric_distribution(geometric_distribution const&) = default;
|
||||
explicit SPROUT_CONSTEXPR geometric_distribution(RealType p_arg)
|
||||
: p_((SPROUT_ASSERT(RealType(0) < p_arg), SPROUT_ASSERT(p_arg < RealType(1)), p_arg))
|
||||
, log_1mp_(init_log_1mp(p_arg))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue