From f704a6c2f72cd32f20333f8233459411ba3dc231 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 12 Dec 2020 11:30:22 +0100 Subject: [PATCH] Fixes copy constructor in OptionalBorrowedPtr being broken. --- src/Memory/__OptionalBorrowedPtr.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Memory/__OptionalBorrowedPtr.hpp b/src/Memory/__OptionalBorrowedPtr.hpp index ec70051..17958e7 100644 --- a/src/Memory/__OptionalBorrowedPtr.hpp +++ b/src/Memory/__OptionalBorrowedPtr.hpp @@ -19,7 +19,7 @@ namespace ArbUt { /// @brief Initialise a BorrowedPtr with a specific raw pointer. inline OptionalBorrowedPtr(T* ptr) : _raw(ptr){}; /// @brief Initialise a BorrowedPtr from a copy. - inline OptionalBorrowedPtr(const BorrowedPtr& other) : _raw(other._raw){}; + inline OptionalBorrowedPtr(const OptionalBorrowedPtr& other) : _raw(other._raw){}; /// @brief Initialise a BorrowedPtr with a std unique_ptr. inline OptionalBorrowedPtr(const std::unique_ptr& other) : _raw(other.get()){};