Fixes copy constructor in OptionalBorrowedPtr being broken.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-12-12 11:30:22 +01:00
parent 5ef9d5f6fc
commit f704a6c2f7
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ namespace ArbUt {
/// @brief Initialise a BorrowedPtr with a specific raw pointer.
inline OptionalBorrowedPtr<T>(T* ptr) : _raw(ptr){};
/// @brief Initialise a BorrowedPtr from a copy.
inline OptionalBorrowedPtr<T>(const BorrowedPtr<T>& other) : _raw(other._raw){};
inline OptionalBorrowedPtr<T>(const OptionalBorrowedPtr<T>& other) : _raw(other._raw){};
/// @brief Initialise a BorrowedPtr with a std unique_ptr.
inline OptionalBorrowedPtr<T>(const std::unique_ptr<T>& other) : _raw(other.get()){};