
Module: ppl/ppl Branch: sparse_matrices Commit: 611c99c62b6eb36d0553335ff082919942a25266 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=611c99c62b6eb...
Author: Enea Zaffanella zaffanella@cs.unipr.it Date: Sun Dec 11 09:58:18 2011 +0100
Do not use typename keyword for non-dependent type names.
---
src/Linear_Expression_Impl.templates.hh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Linear_Expression_Impl.templates.hh b/src/Linear_Expression_Impl.templates.hh index 860f8e1..5564365 100644 --- a/src/Linear_Expression_Impl.templates.hh +++ b/src/Linear_Expression_Impl.templates.hh @@ -358,7 +358,7 @@ Linear_Expression_Impl<Sparse_Row> ::first_nonzero(dimension_type first, dimension_type last) const { PPL_ASSERT(first <= last); PPL_ASSERT(last <= row.size()); - typename Sparse_Row::const_iterator i = row.lower_bound(first); + Sparse_Row::const_iterator i = row.lower_bound(first);
if (i != row.end() && i.index() < last) return i.index(); @@ -385,8 +385,8 @@ Linear_Expression_Impl<Sparse_Row> ::last_nonzero(dimension_type first, dimension_type last) const { PPL_ASSERT(first <= last); PPL_ASSERT(last <= row.size()); - typename Sparse_Row::const_iterator itr1 = row.lower_bound(first); - typename Sparse_Row::const_iterator itr2 = row.lower_bound(last); + Sparse_Row::const_iterator itr1 = row.lower_bound(first); + Sparse_Row::const_iterator itr2 = row.lower_bound(last);
if (itr1 == itr2) return last;