Merge pull request #672 from akva2/fix_build_with_g++_53

fixed: build with g++ 5.3
This commit is contained in:
Bård Skaflestad
2016-04-29 21:16:39 +02:00

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.