From ab781d4516c781e36866bc3a4699d7fc77a9dcab Mon Sep 17 00:00:00 2001 From: "Maarten L. Hekkelman" Date: Mon, 29 Jan 2024 16:33:53 +0100 Subject: [PATCH] work around bug in old gcc --- src/validate.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/validate.cpp b/src/validate.cpp index 6dceaf0..2925b9f 100644 --- a/src/validate.cpp +++ b/src/validate.cpp @@ -55,14 +55,12 @@ validation_exception::validation_exception(std::error_code ec) } validation_exception::validation_exception(std::error_code ec, std::string_view category) - : runtime_error( - (std::ostringstream{} << ec.message() << "; category: " << std::quoted(category)).str()) + : runtime_error((ec.message() + "; category: ").append(category)) { } validation_exception::validation_exception(std::error_code ec, std::string_view category, std::string_view item) - : runtime_error( - (std::ostringstream{} << ec.message() << "; category: " << std::quoted(category) << "; item: " << std::quoted(item)).str()) + : runtime_error((ec.message() + "; category: ").append(category).append("; item: ").append(item)) { }