expected should inherit from itself when not copy constructable

v2
Brett 2025-01-28 00:35:08 -05:00
parent eb73a6e189
commit 02b8f54c7e
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 3.0.7) set(BLT_VERSION 3.0.8)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -375,12 +375,12 @@ namespace blt
}; };
template<typename T, typename E> template<typename T, typename E>
class expected<T, E, false> class expected<T, E, false> : public expected<T, E, true>
{ {
public: public:
using expected<T, E, true>::expected; using expected<T, E, true>::expected;
constexpr expected(const expected<T, E, false>& copy) = delete; constexpr expected(const expected& copy) = delete;
expected& operator=(const expected& copy) = delete; expected& operator=(const expected& copy) = delete;
}; };