[ox] Make Error its own type, not dependent on Integer and make nodiscard

This commit is contained in:
2020-10-11 19:00:58 -05:00
parent 8204188008
commit a725369311
8 changed files with 33 additions and 20 deletions

View File

@ -60,7 +60,7 @@ struct type_version<T, decltype((void) T::TypeVersion, -1)> {
template<typename T>
constexpr const char *getTypeName(T *t) noexcept {
TypeInfoCatcher tnc;
model(&tnc, t);
oxIgnoreError(model(&tnc, t));
return tnc.name;
}