Summary: | pass enumeration argument to constructor of VectorXd | ||
---|---|---|---|
Product: | Eigen | Reporter: | Huang Qinjin <huangqinjin> |
Component: | Core - general | Assignee: | Nobody <eigen.nobody> |
Status: | RESOLVED FIXED | ||
Severity: | Unknown | CC: | chtz, gael.guennebaud, jacob.benoit.1 |
Priority: | Normal | ||
Version: | 3.3 (current stable) | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Bug Depends on: | |||
Bug Blocks: | 814 |
Description
Huang Qinjin
2019-03-17 15:07:19 UTC
In the devel branch we already have internal::is_valid_index_type<T> for that purposes. It is used to detect singletons in operator(row_indices,col_indices), so we would just have to use that. Fixed: https://bitbucket.org/eigen/eigen/commits/b31bfdc8cd3a/ and backported to 3.3. Thank you for reporting. The unit test does not compile in C++03 mode (due to using anonymous enums, similar to Bug 1549). But since this was not possible before, we could just disable this test in that case. yes, I've seen that this morning. I think this is also due to that change: smallvectors fails in C++03 mode: http://manao.inria.fr/CDash/testSummary.php?project=1&name=smallvectors&date=2019-03-19 http://manao.inria.fr/CDash/testSummary.php?project=2&name=smallvectors&date=2019-03-19 Also in C++11 mode with gcc-4.8, but that might as well be an error in gcc. -- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1692. |