Skip to content

Commit

Permalink
work around bug in old gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Jan 29, 2024
1 parent 446438b commit ab781d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
}

Expand Down

0 comments on commit ab781d4

Please sign in to comment.