Remove dereference operator as it just causes issues.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7da8a46c45
commit
544c541bc3
|
@ -30,20 +30,6 @@ namespace ArbUt {
|
||||||
return _raw;
|
return _raw;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename TValue> struct is_complete_helper {
|
|
||||||
template <typename U> static auto test(U*) -> std::integral_constant<bool, sizeof(U) == sizeof(U)>;
|
|
||||||
static auto test(...) -> std::false_type;
|
|
||||||
using type = decltype(test((TValue*)0));
|
|
||||||
};
|
|
||||||
|
|
||||||
template <typename TValue> struct is_complete : is_complete_helper<TValue>::type {};
|
|
||||||
|
|
||||||
inline typename std::enable_if<is_complete<T>::value && !std::is_abstract<T>::value, bool>::type
|
|
||||||
operator*() const {
|
|
||||||
AssertNotNull(_raw);
|
|
||||||
return *_raw;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline T* GetRaw() const noexcept { return _raw; }
|
inline T* GetRaw() const noexcept { return _raw; }
|
||||||
|
|
||||||
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _raw == rhs._raw; }
|
inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _raw == rhs._raw; }
|
||||||
|
|
Loading…
Reference in New Issue