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