Makes GCC happy
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-05-14 16:14:30 +02:00
parent 407f9aaf73
commit 1d8bf3e747
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,8 @@ namespace ArbUt {
inline OptionalUniquePtr<T>() : _raw(nullptr) {} inline OptionalUniquePtr<T>() : _raw(nullptr) {}
/// @brief Initialise a OptionalUniquePtr with a specific raw pointer. /// @brief Initialise a OptionalUniquePtr with a specific raw pointer.
inline OptionalUniquePtr<T>(T* nullable ptr) : _raw(ptr){}; inline OptionalUniquePtr<T>(T* nullable ptr) : _raw(ptr){};
NO_COPY_OR_MOVE(OptionalUniquePtr<T>)
NO_COPY_OR_MOVE(OptionalUniquePtr)
~OptionalUniquePtr() noexcept { delete _raw; } ~OptionalUniquePtr() noexcept { delete _raw; }

View File

@ -18,7 +18,8 @@ namespace ArbUt {
inline UniquePtr<T>() {} inline UniquePtr<T>() {}
/// @brief Initialise a UniquePtr with a specific raw pointer. /// @brief Initialise a UniquePtr with a specific raw pointer.
inline UniquePtr<T>(T* non_null ptr) : _raw(ptr) { EnsureNotNull(ptr); }; inline UniquePtr<T>(T* non_null ptr) : _raw(ptr) { EnsureNotNull(ptr); };
NO_COPY_OR_MOVE(UniquePtr<T>)
NO_COPY_OR_MOVE(UniquePtr)
#if !WINDOWS // This doesn't work on mingw-w64 for some reason #if !WINDOWS // This doesn't work on mingw-w64 for some reason
UniquePtr<T>(std::nullptr_t) = delete; UniquePtr<T>(std::nullptr_t) = delete;