From: hartmann Date: Tue, 8 Jun 2004 13:12:49 +0000 (+0000) Subject: Make it C++ conforming X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02be804cbaed583ff218e50226f15c31803f3335;p=dealii-svn.git Make it C++ conforming git-svn-id: https://svn.dealii.org/trunk@9412 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/block_matrix_base.h b/deal.II/lac/include/lac/block_matrix_base.h index 000cb3d2e5..387c9848c6 100644 --- a/deal.II/lac/include/lac/block_matrix_base.h +++ b/deal.II/lac/include/lac/block_matrix_base.h @@ -1173,7 +1173,8 @@ BlockMatrixBase::add (const unsigned int i, // save some cycles for zero additions, but // only if it is safe for the matrix we are // working with - if ((MatrixType::Traits.zero_addition_can_be_elided == true) + typedef typename MatrixType::Traits MatrixTraits; + if ((MatrixTraits::zero_addition_can_be_elided == true) && (value == 0)) return;