Commit Graph

3 Commits

Author SHA1 Message Date
Jenkins nedprod CI
bbd4e31869 Merging commit ned14/outcome@6d45806413:
Merged from develop branch as CDash reports all green
2019-10-22 13:42:33 +00:00
Jenkins nedprod CI
b13840fb38 Merging commit ned14/outcome@23a1077036:
Merged from develop branch as CDash reports all green
2019-10-11 16:10:48 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
086ef6d04b
#210 make_error_code() and make_exception_ptr() are now additionally considered for
compatible copy and move conversions for `basic_result<>`. This lets you construct
a `basic_result<T, E>` into a `basic_result<T, error_code>`, where `E` is a
custom type which has implemented the ADL discovered free function
`error_code make_error_code(E)`, but is otherwise unrelated to `error_code`.
The same availability applies for `exception_ptr` with `make_exception_ptr()` being
the ADL discovered free function. `basic_outcome<>` has less support for this than
`basic_result<>` in order to keep constructor count down, but it will accept via
this mechanism conversions from `basic_result<>` and `failure_type<>`.
2019-10-10 18:14:56 +01:00