From 30c08e0b89fb7d1c46eb038e97e81833b9a93e2f Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Mon, 29 Sep 2014 06:38:20 -0500
Subject: [PATCH] Add a test to avoid this problem from happening again in the
 future.

---
 tests/base/boost_fusion.cc     | 38 ++++++++++++++++++++++++++++++++++
 tests/base/boost_fusion.output |  2 ++
 2 files changed, 40 insertions(+)
 create mode 100644 tests/base/boost_fusion.cc
 create mode 100644 tests/base/boost_fusion.output

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 <iomanip>
+#include <fstream>
+#include <cmath>
+
+#include <boost/math/special_functions/erf.hpp>
+
+
+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
-- 
2.39.5