From 89d8033fede1831c921941cb7622535e380a2fd7 Mon Sep 17 00:00:00 2001 From: Christian Spanier Date: Mon, 14 Nov 2022 07:04:53 +0100 Subject: [PATCH] Fix two cases of redefinition and hiding of local variables (#46) --- include/boost/exception/diagnostic_information.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/exception/diagnostic_information.hpp b/include/boost/exception/diagnostic_information.hpp index 51fea95..145fbe5 100644 --- a/include/boost/exception/diagnostic_information.hpp +++ b/include/boost/exception/diagnostic_information.hpp @@ -149,11 +149,11 @@ boost if( f ) { tmp << *f; - if( int const * l=get_error_info(*be) ) + if( l ) tmp << '(' << *l << "): "; } tmp << "Throw in function "; - if( char const * const * fn=get_error_info(*be) ) + if( fn ) tmp << *fn; else tmp << "(unknown)";