-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
C++Weekly
exceptions
how to do something like:
try
{
something_that_may_throw(args…);
}
catch(const std::exception& e)
{
throw std::runtime_error(some string built on the fly);
}How to "build" the message (that may depend on runtime information) without having the build himself throwing?
Idea: using std::snstring but complicated with std::string_view which are not null-terminated (std::copy perhaps?).
Length
5-10 minutes
Reactions are currently unavailable