You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
Right now, to construct a variant we need to create an empty one and them use
set
oremplace
. Why not having a constructor that takes the value directly? We already have it foroperator=
:The text was updated successfully, but these errors were encountered: