Compile failed with field typed std::optional<Eigen::Matrix3d>
#193
Labels
compiler-or-standard-limitation
There is no known way to solve this issue, as it it either a compiler or C++ limitation
duplicate
The following code is not compiled:
With the following error:
Tested with C++ 23 standard, with both clang 18 and clang 19.
Eigen::Matrix3d
means a matrix containingdouble
elements with size of 3x3. Eigen is a popular math library.It seems
pfr
trying to constructstd::optional<Eigen::matrix3d>
usingboost::pfr::detail::ubiq_lref_constructor
, thenoptional
forwarded the construction toEigen::Matrix3d
.The text was updated successfully, but these errors were encountered: