Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Construct a variant using the value #9

Closed
douglasantos00 opened this issue Jul 1, 2016 · 1 comment
Closed

Construct a variant using the value #9

douglasantos00 opened this issue Jul 1, 2016 · 1 comment
Assignees

Comments

@douglasantos00
Copy link

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)
@juchem
Copy link
Contributor

juchem commented Jul 1, 2016

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

@juchem juchem self-assigned this Sep 7, 2016
@yfeldblum yfeldblum closed this as not planned Won't fix, can't repro, duplicate, stale Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants