在VS2017上运行程序时,程序报错error C4984: "if constexpr" 是一种 C++17 语言扩展
#include <F:\Program Files (x86)\engine3\Eigen\Dense>
template <class T> struct ValueTraits {
static constexpr T zero() {
if constexpr (std::is_base_of_v<Eigen::DenseBase<T>, T>) {
return T::Zero();
} else {
return 0;
}
}
};
```![图片说明](https://img-ask.csdn.net/upload/201902/16/1550308971_769737.png)
要如何处理啊,是不是VS的问题