From c4a4aedb043489ea9e0fafc843b8ad56e74e7bfd Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Dec 2020 15:25:24 +0100 Subject: [PATCH] Even more documentation. --- src/Memory/OptionalBorrowedPtr.hpp | 1 + src/Memory/OptionalUniquePtr.hpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Memory/OptionalBorrowedPtr.hpp b/src/Memory/OptionalBorrowedPtr.hpp index d7b31e2..a13331a 100644 --- a/src/Memory/OptionalBorrowedPtr.hpp +++ b/src/Memory/OptionalBorrowedPtr.hpp @@ -79,6 +79,7 @@ namespace ArbUt { return BorrowedPtr(cast); } + /// @brief Implicit cast to retrieve raw pointer. inline operator T*() const noexcept { return _raw; } }; } diff --git a/src/Memory/OptionalUniquePtr.hpp b/src/Memory/OptionalUniquePtr.hpp index 90e510b..7217cff 100644 --- a/src/Memory/OptionalUniquePtr.hpp +++ b/src/Memory/OptionalUniquePtr.hpp @@ -57,10 +57,7 @@ namespace ArbUt { inline bool operator!=(T* rhs) const noexcept { return _raw == rhs; } /// @brief Implicit cast to retrieve raw pointer. - inline operator T*() const noexcept { - AssertNotNull(_raw); - return _raw; - } + inline operator T*() const noexcept { return _raw; } }; }