fatal icon indicating copy to clipboard operation
fatal copied to clipboard

Construct a variant using the value

Open douglasantos00 opened this issue 8 years ago • 1 comments

Right now, to construct a variant we need to create an empty one and them use set or emplace. Why not having a constructor that takes the value directly? We already have it for operator=:

<typename U>
  U &operator =(U const &value)

douglasantos00 avatar Jul 01 '16 22:07 douglasantos00

IIRC we didn't reach a good enough API regarding overload resolution. Sounds reasonable, though. I'll take a stab at it again.

juchem avatar Jul 01 '16 23:07 juchem