Fix tests which did not return report_errors()

This commit is contained in:
Glen Fernandes
2018-09-17 07:43:19 -04:00
parent c9c1412a05
commit 718af3e8dc
2 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,9 @@ int main() {
// We have erased the `float` type, only `int` remains
assert(*types.begin() == boost::typeindex::type_id<int>());
//<-
return boost::report_errors();
//->
}
//] [/type_index_registry_example]

View File

@ -64,6 +64,9 @@ int main() {
assert(worldwide.pretty_name() == "my_classes");
assert(worldwide == my_type_index::type_id<my_classes>());
//][/type_index_my_type_index_worldwide_usage]
//<-
return boost::report_errors();
//->
}