From 9f1f3633e20e1b6ab1d162526b0202e8f976bee8 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 3 May 2018 17:32:03 +1000 Subject: [PATCH] debug: catch exceptions by constref in CHECK_THROWS --- debug.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug.hpp b/debug.hpp index 87ac774f..7caf9e22 100644 --- a/debug.hpp +++ b/debug.hpp @@ -341,7 +341,7 @@ \ try \ { C; } \ - catch (E) \ + catch (E const&) \ { caught = true; } \ \ if (!caught) \