From: David Wells Date: Sat, 5 Nov 2016 19:33:30 +0000 (-0400) Subject: Fix compilation with some matrix free tests. X-Git-Tag: v8.5.0-rc1~454^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efe7c6fd6172587224774e5ffcf2ff980b55f8b;p=dealii.git Fix compilation with some matrix free tests. This fixes a compilation error with GCC 4.8: error: no match for ‘operator=’ (operand types are ‘boost::shared_ptr > >’ and ‘long int’) scalar_coefficient = NULL; ^ --- diff --git a/include/deal.II/matrix_free/operators.h b/include/deal.II/matrix_free/operators.h index ffd9b83e82..98990d4fa0 100644 --- a/include/deal.II/matrix_free/operators.h +++ b/include/deal.II/matrix_free/operators.h @@ -1008,7 +1008,7 @@ namespace MatrixFreeOperators clear () { Base::clear(); - scalar_coefficient = NULL; + scalar_coefficient.reset(); }