boostorg / system

Boost.org system module
http://boost.org/libs/system
36 stars 85 forks source link

`error_code` does not convert to `result<Eigen::Matrix4d>` #103

Closed pdimov closed 1 year ago

pdimov commented 1 year ago

https://godbolt.org/z/9n9xY33Pn, as reported in https://github.com/boostorg/json/issues/843. Eigen::Matrix4d does have a constructor taking any T, but it's explicit, and the conversion from error_code to result<Eigen::Matrix4d> is implicit, so the explicit constructor shouldn't be considered.