mirror of
https://github.com/boostorg/leaf.git
synced 2026-02-01 08:32:14 +00:00
decoupled diagnostic_output from expect<>
This commit is contained in:
@@ -100,7 +100,7 @@ int main()
|
||||
//std::exception_ptr, together with any other unknow exception. Presumably this should
|
||||
//never happen, therefore at this point we treat this situation a a logic error: we print
|
||||
//diagnostic information and bail out.
|
||||
[&exp]( std::exception_ptr const & ep )
|
||||
[ ]( std::exception_ptr const & ep )
|
||||
{
|
||||
assert(ep);
|
||||
try
|
||||
@@ -109,7 +109,7 @@ int main()
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
leaf::diagnostic_output_current_exception(std::cerr,exp);
|
||||
leaf::diagnostic_output_current_exception(std::cerr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user