support for readonly buffers (#863) (#1466)

This commit is contained in:
Sebastian Koslowski
2019-11-24 08:33:05 +01:00
committed by Wenzel Jakob
parent bd24155b8b
commit dc65d66171
6 changed files with 83 additions and 13 deletions

View File

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