From: Ralf Hartmann Date: Tue, 10 Apr 2001 14:14:12 +0000 (+0000) Subject: Small fix. X-Git-Tag: v8.0.0~19362 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9d13efaf75b7b61aa116295c7d604d02ba8914a;p=dealii.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