Fixes copy constructor in OptionalBorrowedPtr being broken.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5ef9d5f6fc
commit
f704a6c2f7
|
@ -19,7 +19,7 @@ namespace ArbUt {
|
||||||
/// @brief Initialise a BorrowedPtr with a specific raw pointer.
|
/// @brief Initialise a BorrowedPtr with a specific raw pointer.
|
||||||
inline OptionalBorrowedPtr<T>(T* ptr) : _raw(ptr){};
|
inline OptionalBorrowedPtr<T>(T* ptr) : _raw(ptr){};
|
||||||
/// @brief Initialise a BorrowedPtr from a copy.
|
/// @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.
|
/// @brief Initialise a BorrowedPtr with a std unique_ptr.
|
||||||
inline OptionalBorrowedPtr<T>(const std::unique_ptr<T>& other) : _raw(other.get()){};
|
inline OptionalBorrowedPtr<T>(const std::unique_ptr<T>& other) : _raw(other.get()){};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue