You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really a bug. boost::optional works according to its specification. It is just it's specification is different than std::optional. boost::optional doesn't aim at 100% compatibility with std::optional, because the latter has design flaws that I do not want to repeat.
For now, you need to trust me on this. I will add the section in the docs describing the differences between boost::optional and std::optional along with the rationale, and then hopefully this will be clear.
Activity
akrzemi1 commentedon Sep 13, 2024
This isn't really a bug.
boost::optionalworks according to its specification. It is just it's specification is different thanstd::optional.boost::optionaldoesn't aim at 100% compatibility withstd::optional, because the latter has design flaws that I do not want to repeat.For now, you need to trust me on this. I will add the section in the docs describing the differences between
boost::optionalandstd::optionalalong with the rationale, and then hopefully this will be clear.vinniefalco commentedon Sep 13, 2024
That's fair, but in my mind this:
Should be a simple shortcut for
Why shouldn't this work?
akrzemi1 commentedon Sep 13, 2024
Not directly an answer to your question, but this should give you an idea about where I am coming from from:
https://akrzemi1.wordpress.com/2018/12/09/deducing-your-intentions/
vinniefalco commentedon Sep 14, 2024
Peter doesn't like it either.