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

emplace or/and boost::in_place #43

Open
Kojoley opened this issue Jan 3, 2018 · 2 comments
Open

emplace or/and boost::in_place #43

Kojoley opened this issue Jan 3, 2018 · 2 comments

Comments

@Kojoley
Copy link
Contributor

Kojoley commented Jan 3, 2018

Is there a reason why boost::variant does not support in place object construction? The std::variant has emplace<T>(...) though.

@apolukhin
Copy link
Member

There were no requests to implement it until now :)

@dpelle
Copy link

dpelle commented Nov 11, 2018

I would also like to have this. I use ICU UnicodeString type in boost::variant, and UnicodeString is expensive to copy or move. So boost::variant::emplace(…) would help to improve performances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants