Fix gcc-8 compilation warning

This commit is contained in:
Jason Rhinelander 2018-10-02 12:11:37 -03:00
parent 73634b6db7
commit 177713fa4e
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ public:
}
}
}
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