fixed: build with g++ 5.3

this partially fixes the build on ubuntu xenial.
it also breaks due to an updated eigen, but with this
you can build with the old eigen instead of the distro
supplied eigen.
This commit is contained in:
Arne Morten Kvarving 2016-04-29 19:02:56 +02:00
parent c11d322ef8
commit 5bc252c4ab

View File

@ -360,6 +360,7 @@ spdiag(const AutoDiffBlock<double>::V& d)
Selector(const typename ADB::V& selection_basis,
CriterionForLeftElement crit = GreaterEqualZero)
{
using std::isnan;
// Define selector structure.
const int n = selection_basis.size();
// Over-reserving so we do not have to count.