boostorg / system

Boost.org system module
http://boost.org/libs/system
35 stars 86 forks source link

`result` gets corner construction cases wrong #104

Closed pdimov closed 1 year ago

pdimov commented 1 year ago

Per https://brevzin.github.io//c++/2023/01/18/optional-construction/, the corner cases of constructing result<bool> from result<int> (https://godbolt.org/z/9ebvPqsrx) and result<result<int>> from result<int> (https://godbolt.org/z/PMcdE4Yes) are not handled correctly.