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
Does it support std::optional or boost::optional out of the box ? #677
Comments
Not yet, but it will be most likely added in the future. |
I would like to request this as well. Is this something that is being actively looked at, or is it something where a PR would be welcomed? |
What would "supporting optional" look like? Can you please give example code (using types from Boost.JSON)? |
As I am looking into |
Default implementations of |
To be honest, the hardest part of implementing this feature is determining a good trait for what is and isn't an optional. I.e. is checking that the type is |
Optionals have the member functions .has_value() and .get() |
Yeah, could work |
|
Is there a timeline for this feature? |
Most likely before the next Boost release (December) |
Hello,
Does it support simple json conversion from
std::optional<std::string>
for instance ? When I test I get some errors.Thanks
The text was updated successfully, but these errors were encountered: