2
0
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:
Emil Dotchevski
2019-01-03 13:46:38 -08:00
parent 207bf378cc
commit 484ca0c55e
13 changed files with 173 additions and 131 deletions

View File

@@ -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);
}
}