From 02b8f54c7e65cd7d1fc1785b52d3fb400ac13a59 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 28 Jan 2025 00:35:08 -0500 Subject: [PATCH] expected should inherit from itself when not copy constructable --- CMakeLists.txt | 2 +- include/blt/std/expected.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d294dee..f8afa32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/include/blt/std/expected.h b/include/blt/std/expected.h index f45dcb5..d444fa2 100644 --- a/include/blt/std/expected.h +++ b/include/blt/std/expected.h @@ -375,12 +375,12 @@ namespace blt }; template - class expected + class expected : public expected { public: using expected::expected; - constexpr expected(const expected& copy) = delete; + constexpr expected(const expected& copy) = delete; expected& operator=(const expected& copy) = delete; };