From e7ac7ebd7b5b61d7b91cd3a490b7c2bf920b5624 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 10 Aug 2008 09:12:02 +0000 Subject: [PATCH] Added support to the TR1 library. Added Borland and Sun workaround headers to the TR1 lib. Added a "no tr1" version of cmath to Boost.Config and made use of it throughout Boost.Math. [SVN r48054] --- include/boost/config/no_tr1/cmath.hpp | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/boost/config/no_tr1/cmath.hpp diff --git a/include/boost/config/no_tr1/cmath.hpp b/include/boost/config/no_tr1/cmath.hpp new file mode 100644 index 00000000..d8268d84 --- /dev/null +++ b/include/boost/config/no_tr1/cmath.hpp @@ -0,0 +1,28 @@ +// (C) Copyright John Maddock 2008. +// Use, modification and distribution are subject to the +// Boost Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +// The aim of this header is just to include but to do +// so in a way that does not result in recursive inclusion of +// the Boost TR1 components if boost/tr1/tr1/cmath is in the +// include search path. We have to do this to avoid circular +// dependencies: +// + +#ifndef BOOST_CONFIG_CMATH +# define BOOST_CONFIG_CMATH + +# ifndef BOOST_TR1_NO_RECURSION +# define BOOST_TR1_NO_RECURSION +# define BOOST_CONFIG_NO_CMATH_RECURSION +# endif + +# include + +# ifdef BOOST_CONFIG_NO_CMATH_RECURSION +# undef BOOST_TR1_NO_RECURSION +# undef BOOST_CONFIG_NO_CMATH_RECURSION +# endif + +#endif