mirror of
https://github.com/boostorg/math.git
synced 2026-01-24 18:12:09 +00:00
Fix uninitialized const reference warning
This commit is contained in:
@@ -26,7 +26,7 @@ template <class RealType>
|
||||
struct RealTypeConcept
|
||||
{
|
||||
template <class Other>
|
||||
void check_binary_ops(Other o)
|
||||
void check_binary_ops(Other o) const
|
||||
{
|
||||
RealType r(o);
|
||||
r = o;
|
||||
@@ -100,7 +100,7 @@ struct RealTypeConcept
|
||||
r2 = asin(r);
|
||||
r2 = acos(r);
|
||||
r2 = atan(r);
|
||||
int i;
|
||||
int i {};
|
||||
r2 = ldexp(r, i);
|
||||
r2 = frexp(r, &i);
|
||||
i = boost::math::tools::digits<RealType>();
|
||||
|
||||
Reference in New Issue
Block a user