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
{{ message }}
Repository navigation
use std::optional in place of bool+returning by reference for YAML::convert::decode #696
Since std::optional (specified by C++17) is now implemented by major compilers, it should make sense to relax the restriction of having a default constructor of the type to be decoded by adding an overload
Activity
david-antiteum commentedon Apr 8, 2019
IMHO it will better to wait (or use one of the unofficial implementations) for std::expected to change the api.
jbeder commentedon Aug 3, 2019
Yeah, I think I agree with @david-antiteum, or at least, I don’t think optional is the right type here.
SGSSGene commentedon Jul 8, 2026
Currently we are compatible with back to c++11, so using std::optional/std::variant/std::expected is not an option.