This commit is contained in:
1 file changed
+4
-7
@@ -29,13 +29,10 @@ namespace ArbUt {
|
|||||||
AssertNotNull(_raw);
|
AssertNotNull(_raw);
|
||||||
return _raw;
|
return _raw;
|
||||||
}
|
}
|
||||||
inline T operator*() const {
|
|
||||||
if constexpr (std::is_abstract<T>()) {
|
inline typename std::enable_if<!std::is_abstract<T>::value, bool>::type operator*() const {
|
||||||
static_assert(!std::is_abstract<T>(), "You're not allowed to dereference an abstract class.");
|
AssertNotNull(_raw);
|
||||||
} else {
|
return *_raw;
|
||||||
AssertNotNull(_raw);
|
|
||||||
return *_raw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline T* GetRaw() const noexcept { return _raw; }
|
inline T* GetRaw() const noexcept { return _raw; }
|
||||||
|
|||||||
Reference in new issue
Block a user