From cb54a0a4198c38d8159c2192d1e3867744838545 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 23 Dec 2024 18:27:19 +0100 Subject: [PATCH] ci: common: remove duplicated definition --- src/common/variant.h | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/common/variant.h b/src/common/variant.h index 003b48bda..b90833d2e 100644 --- a/src/common/variant.h +++ b/src/common/variant.h @@ -214,35 +214,4 @@ public: bool is_empty() const noexcept { return this->index() == 0; } }; -template -class optional_variant: public variant -{ -public: -//constructors - /// default constructor - optional_variant() = default; - - /// construct from variant type (use enable_if to avoid issues with copy/move constructor) - template >, - optional_variant - >::value, - bool - >::type = true> - optional_variant(T &&value) : variant(std::forward(value)) {} - - // construct like boost::optional - optional_variant(boost::none_t) {} - -//overloaded operators - /// boolean operator: true if the variant isn't empty/uninitialized - explicit operator bool() const noexcept { return !this->is_empty(); } - -//member functions - /// check if empty/uninitialized - bool is_empty() const noexcept { return this->index() == 0; } -}; - } //namespace tools