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

Replace PtrContainer with std::optional<std::reference_wrapper<T>> #178

Open
SiebrenW opened this issue Apr 10, 2024 · 0 comments
Open

Replace PtrContainer with std::optional<std::reference_wrapper<T>> #178

SiebrenW opened this issue Apr 10, 2024 · 0 comments

Comments

@SiebrenW
Copy link
Contributor

Hi. I noticed the FIXME in the ModuleAdapter.hpp asking whether the standard library had such a container. It does, but it's a combination of two.
I think this snippet can answer a lot more than me trying to explain it:
https://godbolt.org/z/zd1jjWb4h

The interface will be slightly different.

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