bump variant dependency

This commit is contained in:
Dennis Luxen 2014-10-23 16:14:51 +02:00
parent 9d14f81b79
commit 0249bed53a
2 changed files with 127 additions and 136 deletions

View File

@ -33,15 +33,6 @@ template <typename T> class optional
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>(); }
T const &get() const { return variant_.template get<T>(); }