From 3b4ba7c82bd482e2c44766c350367aa0281bd3a6 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Fri, 11 Dec 2020 16:14:12 +0100 Subject: [PATCH] Add trivial constructors to pointers. --- src/Memory/__BorrowedPtr.hpp | 1 + src/Memory/__UniquePtr.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Memory/__BorrowedPtr.hpp b/src/Memory/__BorrowedPtr.hpp index 59be141..24b27b7 100644 --- a/src/Memory/__BorrowedPtr.hpp +++ b/src/Memory/__BorrowedPtr.hpp @@ -14,6 +14,7 @@ namespace ArbUt { T* _raw; public: + inline BorrowedPtr(){} /// @brief Initialise a BorrowedPtr with a specific raw pointer. inline BorrowedPtr(T* ptr) : _raw(ptr) { AssertNotNull(ptr); }; /// @brief Initialise a BorrowedPtr from a copy. diff --git a/src/Memory/__UniquePtr.hpp b/src/Memory/__UniquePtr.hpp index 4708159..cf92ec2 100644 --- a/src/Memory/__UniquePtr.hpp +++ b/src/Memory/__UniquePtr.hpp @@ -14,6 +14,7 @@ namespace ArbUt { T* _raw; public: + inline UniquePtr() {} /// @brief Initialise a UniquePtr with a specific raw pointer. inline UniquePtr(T* ptr) : _raw(ptr) { AssertNotNull(ptr); }; /// @brief Initialise a UniquePtr from a copy.