mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +00:00
Fix gcc-8 compilation warning
This commit is contained in:
parent
73634b6db7
commit
177713fa4e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user