Add trivial constructors to pointers.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-12-11 16:14:12 +01:00
parent f7a161c690
commit 3b4ba7c82b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ namespace ArbUt {
T* _raw;
public:
inline BorrowedPtr<T>(){}
/// @brief Initialise a BorrowedPtr with a specific raw pointer.
inline BorrowedPtr<T>(T* ptr) : _raw(ptr) { AssertNotNull(ptr); };
/// @brief Initialise a BorrowedPtr from a copy.

View File

@ -14,6 +14,7 @@ namespace ArbUt {
T* _raw;
public:
inline UniquePtr<T>() {}
/// @brief Initialise a UniquePtr with a specific raw pointer.
inline UniquePtr<T>(T* ptr) : _raw(ptr) { AssertNotNull(ptr); };
/// @brief Initialise a UniquePtr from a copy.