From: Wolfgang Bangerth Date: Mon, 25 Jul 2016 17:57:07 +0000 (-0500) Subject: Use portable version of erfc(). X-Git-Tag: v8.5.0-rc1~847^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2862%2Fhead;p=dealii.git 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. --- 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