[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());}
- [lmi-commits] [lmi] master updated (f3ad703 -> 47ba720), Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master 47ba720 7/7: Handle a new warning differently, Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master e66446d 4/7: nullptr, Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master ea1a8e0 1/7: Represent null pointer as 'nullptr' rather than '0', Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master 576993a 3/7: Catch even pointers by reference,
Greg Chicares <=
- [lmi-commits] [lmi] master 4cdc992 5/7: Use 'override' where appropriate, Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master fe481a9 2/7: Remove superfluous semicolon, Greg Chicares, 2020/06/07
- [lmi-commits] [lmi] master 1372a42 6/7: Use '-isystem' to suppress warnings in third-party headers, Greg Chicares, 2020/06/07