From 94b58b5f9a63eb9118d188753c52296bcd7affc0 Mon Sep 17 00:00:00 2001 From: asartori86 Date: Wed, 26 Jul 2017 16:57:10 +0200 Subject: [PATCH] fix compilation issue with gcc-5.4 --- doc/news/changes/minor/20170726AlbertoSartori | 3 +++ include/deal.II/base/function_parser.h | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 doc/news/changes/minor/20170726AlbertoSartori 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 -- 2.39.5