commit | 177713fa4ea49c5594b5568279757f22354fa000 | [log] [tgz] |
---|---|---|
author | Jason Rhinelander <jason@imaginary.ca> | Tue Oct 02 12:11:37 2018 -0300 |
committer | Jason Rhinelander <jason@imaginary.ca> | Tue Oct 02 12:11:37 2018 -0300 |
tree | 34b380b5062ca270c2b11167baa6bdcdf8c85dc2 | |
parent | 73634b6db743e5b5b6fc5c64db020e4434cd41f0 [diff] [blame] |
Fix gcc-8 compilation warning
diff --git a/tests/constructor_stats.h b/tests/constructor_stats.h index babded0..f026e70 100644 --- a/tests/constructor_stats.h +++ b/tests/constructor_stats.h
@@ -180,7 +180,7 @@ } } } - catch (std::out_of_range) {} + catch (const std::out_of_range &) {} if (!t1) throw std::runtime_error("Unknown class passed to ConstructorStats::get()"); auto &cs1 = get(*t1); // If we have both a t1 and t2 match, one is probably the trampoline class; return whichever