Allow std::initializer_list constructors in constexpr expressions

This commit is contained in:
Alexander Richardson
2022-12-14 17:05:37 +00:00
committed by Rasmus Munk Larsen
parent 6d3e3678b4
commit 62de593c40
7 changed files with 213 additions and 196 deletions

View File

@@ -670,8 +670,7 @@ template<typename Derived> class DenseBase
protected:
EIGEN_DEFAULT_COPY_CONSTRUCTOR(DenseBase)
/** Default constructor. Do nothing. */
EIGEN_DEVICE_FUNC DenseBase()
{
EIGEN_DEVICE_FUNC constexpr DenseBase() {
/* Just checks for self-consistency of the flags.
* Only do it when debugging Eigen, as this borders on paranoia and could slow compilation down
*/