Skip to content

Commit

Permalink
Fix Wcatch-value.
Browse files Browse the repository at this point in the history
This warning is reported by GCC 9.
  • Loading branch information
besser82 committed Feb 11, 2019
1 parent 7930ccc commit a3b64cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rx/v2/examples/doxygen/composite_exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ SCENARIO("composite_exception sample"){
[](std::exception_ptr composite_e) {
printf("OnError %s\n", rxu::what(composite_e).c_str());
try { std::rethrow_exception(composite_e); }
catch(rxcpp::composite_exception ce) {
catch(rxcpp::composite_exception &ce) {
for(std::exception_ptr particular_e : ce.exceptions) {

try{ std::rethrow_exception(particular_e); }
catch(std::runtime_error error) { printf(" *** %s\n", error.what()); }
catch(std::runtime_error &error) { printf(" *** %s\n", error.what()); }

}
}
Expand Down

0 comments on commit a3b64cc

Please sign in to comment.