Fixes copy constructor in OptionalBorrowedPtr being broken.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5ef9d5f6fc
commit
f704a6c2f7
@ -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()){};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user