Remove dereference operator as it just causes issues.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-06-26 17:49:42 +02:00
parent 7da8a46c45
commit 544c541bc3
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 0 additions and 14 deletions

View File

@ -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; }