Update optional.hpp

This commit is contained in:
Teebonne 2022-10-09 18:38:54 +01:00 committed by GitHub
parent 1a22f68fee
commit b27e9ab30c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ public:
}
private:
std::unique_ptr<T> optional_ptr;
std::unique_ptr<T,std::default_delete<T>> optional_ptr;
};
#ifdef XLNT_NOEXCEPT_VALUE_COMPAT