Fixed issue where the dereferencing function broke compilation on some compilers.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
72aad2a5e3
commit
7fe8c80141
|
@ -30,8 +30,13 @@ namespace ArbUt {
|
|||
return _raw;
|
||||
}
|
||||
inline T operator*() const {
|
||||
AssertNotNull(_raw);
|
||||
return *_raw;
|
||||
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; }
|
||||
|
|
Loading…
Reference in New Issue