From: hartmann Date: Tue, 10 Apr 2001 14:14:12 +0000 (+0000) Subject: Small fix. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b65be95b5b24c5f2cc009a4ceb68a5e77a5cec3;p=dealii-svn.git Small fix. git-svn-id: https://svn.dealii.org/trunk@4422 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/sparsity_pattern.cc b/deal.II/lac/source/sparsity_pattern.cc index 1d41dfa12f..dac608db76 100644 --- a/deal.II/lac/source/sparsity_pattern.cc +++ b/deal.II/lac/source/sparsity_pattern.cc @@ -381,8 +381,8 @@ SparsityPattern::compress () // this case only sort the // remaining entries, otherwise // sort all - std::sort ((rows==cols) ? &tmp_entries[1] : &tmp_entries[0], - &tmp_entries[row_length]); + std::sort ((rows==cols) ? tmp_entries.begin()+1 : tmp_entries.begin(), + tmp_entries.begin()+row_length); // insert column numbers // into the new field