From: asartori86 Date: Wed, 26 Jul 2017 14:57:10 +0000 (+0200) Subject: fix compilation issue with gcc-5.4 X-Git-Tag: v9.0.0-rc1~1352^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94b58b5f9a63eb9118d188753c52296bcd7affc0;p=dealii.git fix compilation issue with gcc-5.4 --- diff --git a/doc/news/changes/minor/20170726AlbertoSartori b/doc/news/changes/minor/20170726AlbertoSartori new file mode 100644 index 0000000000..5e040ce02d --- /dev/null +++ b/doc/news/changes/minor/20170726AlbertoSartori @@ -0,0 +1,3 @@ +Fixed: FunctionParser uses shared_ptr instead of unique_ptr in order to fix compilation issues with gcc-5.4. +
+(Alberto Sartori, 2017/07/26) diff --git a/include/deal.II/base/function_parser.h b/include/deal.II/base/function_parser.h index 9e2e057078..5170af931a 100644 --- a/include/deal.II/base/function_parser.h +++ b/include/deal.II/base/function_parser.h @@ -328,10 +328,11 @@ private: /** * The muParser objects for each thread (and one for each component). We are - * storing unique_ptr so that we don't need to include the definition of + * storing shared_ptr so that we don't need to include the definition of * mu::Parser in this header. */ - mutable Threads::ThreadLocalStorage > > fp; + // std::unique_ptr does not compile with gcc-5.4 + mutable Threads::ThreadLocalStorage > > fp; /** * An array to keep track of all the constants, required to initialize fp in