8000 Add implicit conversion from a wrapped value inside a variant · Issue #48 · rttrorg/rttr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add implicit conversion from a wrapped value inside a variant #48

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

Closed
acki-m opened this issue Mar 29, 2017 · 0 comments
Closed

Add implicit conversion from a wrapped value inside a variant #48

acki-m opened this issue Mar 29, 2017 · 0 comments

Comments

@acki-m
Copy link
Contributor
acki-m commented Mar 29, 2017

Add support for automatic conversion of a wrapped value inside a variant:
Example use case:

int value = 23;
variant var = std::ref(value);
// instead of writing this:
std::cout << var.extract_wrapped_value().to_int() << std::endl;
// user can now write this:
std::cout << var.to_int() << std::endl;
@acki-m acki-m closed this as completed in 8dbbf79 Mar 29, 2017
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

1 participant
0