Fixed issue where the dereferencing function broke compilation on some compilers.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
1 file changed
+5
@@ -30,9 +30,14 @@ namespace ArbUt {
|
||||
return _raw;
|
||||
}
|
||||
inline T operator*() const {
|
||||
if constexpr (std::is_abstract<T>()){
|
||||
static_assert(!std::is_abstract<T>(), "You're not allowed to dereference an abstract class.");
|
||||
}
|
||||
else{
|
||||
AssertNotNull(_raw);
|
||||
return *_raw;
|
||||
}
|
||||
}
|
||||
|
||||
inline T* GetRaw() const noexcept { return _raw; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user