From a42f478170bedbef842eca6a4ebf35d749299d0f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 25 Jul 2016 12:57:07 -0500 Subject: [PATCH] Use portable version of erfc(). erfc is only part of C99, and thus not in C++98. It did make it into C++ via the TR1 addition, which I think is in C++03 and consequently in C++11, but be that as it may, let's just use the BOOST version of it to be on the safe side. --- source/base/function_parser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/base/function_parser.cc b/source/base/function_parser.cc index e00dddadf8..87b58ae575 100644 --- a/source/base/function_parser.cc +++ b/source/base/function_parser.cc @@ -23,6 +23,7 @@ DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include +#include DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #ifdef DEAL_II_WITH_MUPARSER @@ -182,7 +183,7 @@ namespace internal double mu_erfc(double value) { - return erfc(value); + return boost::math::erfc(value); } // returns a random value in the range [0,1] initializing the generator -- 2.39.5