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

constructable from std::optional #52

Open
shiz01 opened this issue Sep 19, 2021 · 1 comment
Open

constructable from std::optional #52

shiz01 opened this issue Sep 19, 2021 · 1 comment

Comments

@shiz01
Copy link

shiz01 commented Sep 19, 2021

Make tl::optional<U> constructible from std::optional<T>, when T is convertible to U.

@BenFrantzDale
Copy link

BenFrantzDale commented Oct 19, 2022

Ideal would be a way of registering other optional types. We use std::optional and absl::optional. It would be nice if I could do something like template <typename T> struct tl::is_some_optional<absl::optional<T>> : std::true_type {}. Likewise boost::optional. And likewise std::nulloopt_t, absl::nullopt_t, etc.

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

2 participants