Skip to content

Commit d8d7ade

Browse files
committed
fix(base): 修复catch_throw.cpp中的编译错误
1 parent b0098a0 commit d8d7ade

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/base/catch_throw.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void CatchType()
5252
}
5353

5454
bool CatchThrow(const std::function<void()> &func,
55-
bool print_backtrace, bool abort_process)
55+
bool print_backtrace, bool abort_process) noexcept
5656
{
5757
try {
5858
if (func)
@@ -93,7 +93,7 @@ bool CatchThrow(const std::function<void()> &func,
9393
return true;
9494
}
9595

96-
bool CatchThrowQuietly(const std::function<void()> &func)
96+
bool CatchThrowQuietly(const std::function<void()> &func) noexcept
9797
{
9898
try {
9999
if (func)

0 commit comments

Comments
 (0)