Allow blank constructors for pointer types.

This commit is contained in:
2020-03-30 17:28:21 +02:00
parent d46b0d798a
commit 6c5fe1bf93
4 changed files with 4 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ namespace Arbutils::Memory {
T* _ptr;
public:
inline BorrowedPtr() {};
inline explicit constexpr BorrowedPtr(T* ptr) noexcept : _ptr(ptr){};
inline constexpr T* GetUnsafe() noexcept { return _ptr; }