From c445536aed58a6aa2ebdc29d4887fe90d00b086e Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 15 Oct 2020 18:05:51 +0200 Subject: [PATCH] Fixed issue preventing THROW macro having easy access to sstream. --- src/Exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception.hpp b/src/Exception.hpp index 1ca025c..b36f04b 100644 --- a/src/Exception.hpp +++ b/src/Exception.hpp @@ -152,7 +152,7 @@ static constexpr const char* file_name(const char* path) { #define THROW(message) \ std::stringstream ___ss; \ - ___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << (message); \ + ___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << message; \ throw ArbUt::Exception(___ss.str()); #define NOT_REACHABLE THROW("Not reachable");