2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-01-19 04:22:08 +00:00

error -> error_id

This commit is contained in:
Emil Dotchevski
2019-01-15 00:36:44 -08:00
parent 17fc004d55
commit ff6f7716cd
28 changed files with 149 additions and 149 deletions

View File

@@ -15,12 +15,12 @@ struct info
int value;
};
leaf::error f12()
leaf::error_id f12()
{
return leaf::new_error( info<1>{1}, info<2>{2} );
}
leaf::error f34()
leaf::error_id f34()
{
return leaf::new_error( info<3>{3}, info<4>{4} );
}
@@ -28,8 +28,8 @@ leaf::error f34()
int main()
{
leaf::static_store<info<1>,info<2>,info<3>,info<4>> exp;
leaf::error e1=f12();
leaf::error e2=f34();
leaf::error_id e1=f12();
leaf::error_id e2=f34();
{
int e1c1=0, e1c2=0;
bool handled = exp.handle_error( e1,