bump variant dependency
This commit is contained in:
parent
9d14f81b79
commit
0249bed53a
9
ThirdParty/variant/optional.hpp
vendored
9
ThirdParty/variant/optional.hpp
vendored
@ -33,15 +33,6 @@ template <typename T> class optional
|
|||||||
|
|
||||||
optional(T const &v) { variant_ = v; }
|
optional(T const &v) { variant_ = v; }
|
||||||
|
|
||||||
optional &operator=(optional other)
|
|
||||||
{ // note: argument passed by value!
|
|
||||||
if (this != &other)
|
|
||||||
{
|
|
||||||
swap(other);
|
|
||||||
}
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
explicit operator bool() const noexcept { return variant_.template is<T>(); }
|
explicit operator bool() const noexcept { return variant_.template is<T>(); }
|
||||||
|
|
||||||
T const &get() const { return variant_.template get<T>(); }
|
T const &get() const { return variant_.template get<T>(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user