From 01d77f55e75cd29f9daa4062c3fdb2accf604ff2 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Sat, 2 Jul 2022 19:10:05 -0700 Subject: [PATCH] Fix uninitialized const reference warning --- include/boost/math/concepts/real_type_concept.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/math/concepts/real_type_concept.hpp b/include/boost/math/concepts/real_type_concept.hpp index f4eb3f300..2d7fe58d3 100644 --- a/include/boost/math/concepts/real_type_concept.hpp +++ b/include/boost/math/concepts/real_type_concept.hpp @@ -26,7 +26,7 @@ template struct RealTypeConcept { template - 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();