From: Wolfgang Bangerth Date: Mon, 29 Sep 2014 11:38:20 +0000 (-0500) Subject: Add a test to avoid this problem from happening again in the future. X-Git-Tag: v8.2.0-rc1~120^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30c08e0b89fb7d1c46eb038e97e81833b9a93e2f;p=dealii.git Add a test to avoid this problem from happening again in the future. --- diff --git a/tests/base/boost_fusion.cc b/tests/base/boost_fusion.cc new file mode 100644 index 0000000000..0bdb3fc145 --- /dev/null +++ b/tests/base/boost_fusion.cc @@ -0,0 +1,38 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2014 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// when updating BOOST to 1.56 in the summer of 2014, we thought we +// could get rid of BOOST.fusion. but this doesn't work for some users +// since boost/math/special_functions/erf.hpp uses it. this test is a +// reminder that we can't do this again in the future + +#include "../tests.h" +#include +#include +#include + +#include + + +int main() +{ + std::ofstream logfile("output"); + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + deallog << boost::math::erf (0.5) << std::endl; +} diff --git a/tests/base/boost_fusion.output b/tests/base/boost_fusion.output new file mode 100644 index 0000000000..40fb36c488 --- /dev/null +++ b/tests/base/boost_fusion.output @@ -0,0 +1,2 @@ + +DEAL::0.520500