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

optimization for trivial T's #105

Open
akrzemi1 opened this issue Sep 6, 2022 · 0 comments
Open

optimization for trivial T's #105

akrzemi1 opened this issue Sep 6, 2022 · 0 comments

Comments

@akrzemi1
Copy link
Member

akrzemi1 commented Sep 6, 2022

Currently optional provides optimized storage for scalar types:
https://github.com/boostorg/optional/blob/develop/include/boost/optional/optional.hpp#L900

Generalize it for any trivial type that is move/copy constructible/assignable, as per description in https://www.boost.org/doc/libs/1_80_0/libs/optional/doc/html/boost_optional/tutorial/gotchas/moved_from__optional_.html

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

1 participant