From 544c541bc3b0721981b5de8cd863330ae95a23d1 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 26 Jun 2020 17:49:42 +0200 Subject: [PATCH] Remove dereference operator as it just causes issues. --- src/Memory/BorrowedPtr.hpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Memory/BorrowedPtr.hpp b/src/Memory/BorrowedPtr.hpp index 52a0e1b..95dbb65 100644 --- a/src/Memory/BorrowedPtr.hpp +++ b/src/Memory/BorrowedPtr.hpp @@ -30,20 +30,6 @@ namespace ArbUt { return _raw; } - template struct is_complete_helper { - template static auto test(U*) -> std::integral_constant; - static auto test(...) -> std::false_type; - using type = decltype(test((TValue*)0)); - }; - - template struct is_complete : is_complete_helper::type {}; - - inline typename std::enable_if::value && !std::is_abstract::value, bool>::type - operator*() const { - AssertNotNull(_raw); - return *_raw; - } - inline T* GetRaw() const noexcept { return _raw; } inline bool operator==(const BorrowedPtr& rhs) const noexcept { return _raw == rhs._raw; }