expected should inherit from itself when not copy constructable
parent
eb73a6e189
commit
02b8f54c7e
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
include(cmake/color.cmake)
|
||||
set(BLT_VERSION 3.0.7)
|
||||
set(BLT_VERSION 3.0.8)
|
||||
|
||||
set(BLT_TARGET BLT)
|
||||
|
||||
|
|
|
@ -375,12 +375,12 @@ namespace blt
|
|||
};
|
||||
|
||||
template<typename T, typename E>
|
||||
class expected<T, E, false>
|
||||
class expected<T, E, false> : public expected<T, E, true>
|
||||
{
|
||||
public:
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue