From 80006e1f6653f2fc092e2d5f96d1ce08061f153f Mon Sep 17 00:00:00 2001 From: metabeyond Date: Fri, 29 Nov 2024 08:49:16 +0800 Subject: [PATCH] New feature: aggregate_error::throw_nested, a more concise, clear version --- include/essence/exception.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/essence/exception.hpp b/include/essence/exception.hpp index e7ffe99..7d2fbb8 100644 --- a/include/essence/exception.hpp +++ b/include/essence/exception.hpp @@ -52,8 +52,7 @@ namespace essence { const std::exception_ptr& root, std::int32_t indent = default_nested_exception_indent); template - [[noreturn]] ES_API(CPPESSENCE) static void throw_nested( - E&& ex, std::int32_t indent = default_nested_exception_indent) try { + [[noreturn]] static void throw_nested(E&& ex, std::int32_t indent = default_nested_exception_indent) try { std::throw_with_nested(std::forward(ex)); } catch (const std::exception&) { flatten_and_throw(std::current_exception(), indent);