...
This commit is contained in:
@@ -758,12 +758,10 @@ public:
|
||||
}
|
||||
|
||||
|
||||
template <typename OutputItT, typename FormatT = std::string_view>
|
||||
static void formatError(std::error_code err,
|
||||
OutputItT out_iter,
|
||||
FormatT fmt = "{} (Err category: {}) (Err msg: {})")
|
||||
static void formatError(std::error_code err, std::string& result_str)
|
||||
{
|
||||
std::format_to(out_iter, fmt, err.value(), err.category().name(), err.message());
|
||||
std::format_to(std::back_inserter(result_str), "{} (Err category: {}) (Err msg: {})", err.value(),
|
||||
err.category().name(), err.message());
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user