lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 576993a 3/7: Catch even pointers by reference


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 576993a 3/7: Catch even pointers by reference
Date: Sun, 7 Jun 2020 18:03:29 -0400 (EDT)

branch: master
commit 576993ab22f67300e41554641d13b58858228ff9
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Catch even pointers by reference
    
    Placated 'gcc -Wcatch-value=3', albeit obscurely.
---
 catch_exceptions.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catch_exceptions.hpp b/catch_exceptions.hpp
index ee82ae2..f09cf4b 100644
--- a/catch_exceptions.hpp
+++ b/catch_exceptions.hpp
@@ -116,7 +116,7 @@ namespace lmi_test
     // arguments (ISO 15.3 paragraphs 18 & 19). Apparently const isn't
     // required, but it doesn't hurt and some programmers ask for it.
 
-        catch(char const* e)
+        catch(char const*& e)
             {detail::report_exception(out, ""                      , e);}
         catch(std::string const& e)
             {detail::report_exception(out, ""                      , 
e.c_str());}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]