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,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; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue