2
0
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:
Matt Borland
2022-07-02 19:10:05 -07:00
parent f000fd5c5c
commit 01d77f55e7

View File

@@ -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>();