Added boost header
This commit is contained in:
169
test/external/boost/tr1/detail/config.hpp
vendored
Normal file
169
test/external/boost/tr1/detail/config.hpp
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
// (C) Copyright John Maddock 2005-7.
|
||||
// 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)
|
||||
|
||||
#ifndef BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
|
||||
# define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#if (defined(__GNUC__) && !(defined(linux) || defined(__linux) || defined(__linux__))) \
|
||||
|| (!defined(_AIX) && defined(__IBMCPP__) && (__IBMCPP__ >= 800))
|
||||
// Disable use of #include_next on Linux as typically we are installed in a
|
||||
// directory that is searched *after* the std lib include path.
|
||||
#if !defined(BOOST_HAS_INCLUDE_NEXT)
|
||||
# define BOOST_HAS_INCLUDE_NEXT
|
||||
#endif
|
||||
// Need to find out if we're using GLIBC:
|
||||
#ifdef BOOST_TR1_UTILITY_INCLUDED
|
||||
// Oops we're in a recursive include path!!
|
||||
// Need to include utility, or some std lib header,
|
||||
// but *not* via <utility> or <boost/config/no_tr1/utility.hpp>
|
||||
# ifndef BOOST_TR1_NO_RECURSION
|
||||
# define BOOST_TR1_NO_RECURSION
|
||||
# define BOOST_TR1_NO_CONFIG_RECURSION
|
||||
# endif
|
||||
# if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
|
||||
# include_next <utility>
|
||||
# else
|
||||
# include BOOST_TR1_STD_HEADER(utility)
|
||||
# endif
|
||||
# ifdef BOOST_TR1_NO_CONFIG_RECURSION
|
||||
# undef BOOST_TR1_NO_CONFIG_RECURSION
|
||||
# undef BOOST_TR1_NO_RECURSION
|
||||
# endif
|
||||
#else
|
||||
#include <boost/config/no_tr1/utility.hpp>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__GLIBCXX__) && !defined(BOOST_TR1_PATH)
|
||||
# define BOOST_TR1_PATH(name) tr1/name
|
||||
#endif
|
||||
#if !defined(BOOST_TR1_PATH)
|
||||
# define BOOST_TR1_PATH(name) name
|
||||
#endif
|
||||
|
||||
#define BOOST_TR1_HEADER(name) <BOOST_TR1_PATH(name)>
|
||||
|
||||
// Can't use BOOST_WORKAROUND here, it leads to recursive includes:
|
||||
#if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600)) || (defined(_MSC_VER) && (_MSC_VER < 1310))
|
||||
# define BOOST_TR1_USE_OLD_TUPLE
|
||||
#endif
|
||||
|
||||
#ifdef __IBMCPP_TR1__
|
||||
// turn on support for everything:
|
||||
# define BOOST_HAS_TR1
|
||||
#endif
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
# define BOOST_HAS_TR1_COMPLEX_OVERLOADS
|
||||
# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_HAS_TR1
|
||||
// turn on support for everything:
|
||||
# define BOOST_HAS_TR1_ARRAY
|
||||
# define BOOST_HAS_TR1_COMPLEX_OVERLOADS
|
||||
# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
|
||||
# define BOOST_HAS_TR1_REFERENCE_WRAPPER
|
||||
# define BOOST_HAS_TR1_RESULT_OF
|
||||
# define BOOST_HAS_TR1_MEM_FN
|
||||
# define BOOST_HAS_TR1_BIND
|
||||
# define BOOST_HAS_TR1_FUNCTION
|
||||
# define BOOST_HAS_TR1_HASH
|
||||
# define BOOST_HAS_TR1_SHARED_PTR
|
||||
# define BOOST_HAS_TR1_RANDOM
|
||||
# define BOOST_HAS_TR1_REGEX
|
||||
# define BOOST_HAS_TR1_TUPLE
|
||||
# define BOOST_HAS_TR1_TYPE_TRAITS
|
||||
# define BOOST_HAS_TR1_UTILITY
|
||||
# define BOOST_HAS_TR1_UNORDERED_MAP
|
||||
# define BOOST_HAS_TR1_UNORDERED_SET
|
||||
# define BOOST_HAS_TR1_CMATH
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(__MWERKS__) && (__MWERKS__ >= 0x3205)
|
||||
//
|
||||
// Very preliminary MWCW support, may not be right:
|
||||
//
|
||||
# define BOOST_HAS_TR1_SHARED_PTR
|
||||
# define BOOST_HAS_TR1_REFERENCE_WRAPPER
|
||||
# define BOOST_HAS_TR1_FUNCTION
|
||||
# define BOOST_HAS_TR1_TUPLE
|
||||
# define BOOST_HAS_TR1_RESULT_OF
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_HAS_GCC_TR1
|
||||
// turn on support for everything in gcc 4.0.x:
|
||||
# define BOOST_HAS_TR1_ARRAY
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
|
||||
//# define BOOST_HAS_TR1_COMPLEX_OVERLOADS
|
||||
# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
|
||||
#endif
|
||||
# define BOOST_HAS_TR1_REFERENCE_WRAPPER
|
||||
# define BOOST_HAS_TR1_RESULT_OF
|
||||
# define BOOST_HAS_TR1_MEM_FN
|
||||
# define BOOST_HAS_TR1_BIND
|
||||
# define BOOST_HAS_TR1_FUNCTION
|
||||
# define BOOST_HAS_TR1_HASH
|
||||
# define BOOST_HAS_TR1_SHARED_PTR
|
||||
#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
|
||||
# define BOOST_HAS_TR1_RANDOM
|
||||
//# define BOOST_HAS_TR1_REGEX
|
||||
#ifdef _GLIBCXX_USE_C99_MATH_TR1
|
||||
# define BOOST_HAS_TR1_CMATH
|
||||
#endif
|
||||
#endif
|
||||
# define BOOST_HAS_TR1_TUPLE
|
||||
# define BOOST_HAS_TR1_TYPE_TRAITS
|
||||
# define BOOST_HAS_TR1_UTILITY
|
||||
# define BOOST_HAS_TR1_UNORDERED_MAP
|
||||
# define BOOST_HAS_TR1_UNORDERED_SET
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1500) \
|
||||
&& defined(_MSC_FULL_VER) && \
|
||||
!defined(__SGI_STL_PORT) && \
|
||||
!defined(_STLPORT_VERSION) && \
|
||||
!defined(_RWSTD_VER_STR) && \
|
||||
!defined(_RWSTD_VER)
|
||||
//
|
||||
// MSVC-9.0 defines a not-quite TR1 conforming hash
|
||||
// function object in <functional>, so we must define
|
||||
// this here, in addition the feature pack for VC9
|
||||
// provides a more or less full TR1 implementation:
|
||||
//
|
||||
# if defined(_HAS_TR1) && (_HAS_TR1 + 0)
|
||||
# define BOOST_HAS_TR1_ARRAY
|
||||
# define BOOST_HAS_TR1_REFERENCE_WRAPPER
|
||||
# define BOOST_HAS_TR1_RESULT_OF
|
||||
# define BOOST_HAS_TR1_MEM_FN
|
||||
# define BOOST_HAS_TR1_BIND
|
||||
# define BOOST_HAS_TR1_FUNCTION
|
||||
# define BOOST_HAS_TR1_HASH
|
||||
# define BOOST_HAS_TR1_SHARED_PTR
|
||||
# define BOOST_HAS_TR1_RANDOM
|
||||
# define BOOST_HAS_TR1_REGEX
|
||||
# define BOOST_HAS_TR1_TUPLE
|
||||
# define BOOST_HAS_TR1_TYPE_TRAITS
|
||||
# define BOOST_HAS_TR1_UTILITY
|
||||
# define BOOST_HAS_TR1_UNORDERED_MAP
|
||||
# define BOOST_HAS_TR1_UNORDERED_SET
|
||||
# else
|
||||
# define BOOST_HAS_TR1_HASH
|
||||
# endif
|
||||
# if _MSC_VER >= 1600
|
||||
# define BOOST_HAS_CPP_0X
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
168
test/external/boost/tr1/detail/config_all.hpp
vendored
Normal file
168
test/external/boost/tr1/detail/config_all.hpp
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
// (C) Copyright John Maddock 2005.
|
||||
// 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 gcc include path logic is derived from STLport:
|
||||
*
|
||||
* Copyright (c) 1994
|
||||
* Hewlett-Packard Company
|
||||
*
|
||||
* Copyright (c) 1996-1999
|
||||
* Silicon Graphics Computer Systems, Inc.
|
||||
*
|
||||
* Copyright (c) 1997
|
||||
* Moscow Center for SPARC Technology
|
||||
*
|
||||
* Copyright (c) 1999-2003
|
||||
* Boris Fomitchev
|
||||
*
|
||||
* This material is provided "as is", with absolutely no warranty expressed
|
||||
* or implied. Any use is at your own risk.
|
||||
*
|
||||
* Permission to use or copy this software for any purpose is hereby granted
|
||||
* without fee, provided the above notices are retained on all copies.
|
||||
* Permission to modify the code and to distribute modified code is granted,
|
||||
* provided the above notices are retained, and a notice that the code was
|
||||
* modified is included with the above copyright notice.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED
|
||||
# define BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED
|
||||
|
||||
//
|
||||
// IMPORTANT: we must figure out the basics, such as how to
|
||||
// forward to the real std lib headers *without* including
|
||||
// boost/config.hpp or any of the std lib headers. A classic
|
||||
// chicken and the egg problem....
|
||||
//
|
||||
// Including <cstddef> at least lets us detect STLport:
|
||||
//
|
||||
#include <cstddef>
|
||||
|
||||
// Including <cstdlib> allows us to use __GLIBCXX__ to
|
||||
// determine the version of the stdc++ library in use
|
||||
// under Darwin.
|
||||
#include <cstdlib>
|
||||
|
||||
# if defined(_RWSTD_VER) && _RWSTD_VER >= 0x04010200
|
||||
# if !defined (__SUNPRO_CC) && !defined (__DECCXX)
|
||||
# define BOOST_TR1_STD_CHEADER(name) <../include/ansi/name>
|
||||
# endif
|
||||
# endif
|
||||
|
||||
|
||||
# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && !defined(__BORLANDC__)
|
||||
# ifdef __SUNPRO_CC
|
||||
// can't use <../stlport/name> since some compilers put stlport in a different directory:
|
||||
# define BOOST_TR1_STD_HEADER(name) <../stlport4/name>
|
||||
# elif defined(__PGI)
|
||||
# define BOOST_TR1_STD_HEADER(name) <../CC/name>
|
||||
# else
|
||||
# define BOOST_TR1_STD_HEADER(name) <../stlport/name>
|
||||
# endif
|
||||
# elif defined(__PATHSCALE__) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER))
|
||||
# define BOOST_TR1_STD_HEADER(name) <../include/name>
|
||||
|
||||
# elif defined(__SUNPRO_CC) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER))
|
||||
# define BOOST_TR1_STD_HEADER(name) <../stdcxx4/name>
|
||||
|
||||
# elif defined(__HP_aCC)
|
||||
// HP aCC include path:
|
||||
# define BOOST_TR1_STD_HEADER(name) <../include_std/name>
|
||||
|
||||
# elif defined(__DECCXX)
|
||||
# define BOOST_TR1_STD_HEADER(name) <../cxx/name>
|
||||
|
||||
# elif defined(__BORLANDC__) && __BORLANDC__ >= 0x570
|
||||
# define BOOST_TR1_STD_HEADER(name) <../include/dinkumware/name>
|
||||
|
||||
# elif defined(__clang__)
|
||||
# define BOOST_TR1_STD_HEADER(name) <../include/name>
|
||||
|
||||
# elif defined(__GNUC__) && __GNUC__ >= 3
|
||||
# if defined(BOOST_TR1_GCC_INCLUDE_PATH)
|
||||
# define BOOST_TR1_STD_HEADER(name) <../BOOST_TR1_GCC_INCLUDE_PATH/name>
|
||||
# elif ( (__GNUC__ == 3 ) && ((__GNUC_MINOR__ == 0) || ((__GNUC_MINOR__ < 3) && defined(__APPLE_CC__))))
|
||||
# define BOOST_TR1_STD_HEADER(name) <../g++-v3/name>
|
||||
# else
|
||||
# if ( ((__GNUC__ == 3 ) && (__GNUC_MINOR__ >= 3)) && (defined(__APPLE_CC__) || defined(__CYGWIN__)))
|
||||
# define BOOST_TR1_STD_HEADER(name) <../c++/name>
|
||||
# elif ((__GLIBCXX__ == 20050421) && defined(__APPLE_CC__))
|
||||
// Some Darwin tools fix libstdc++ at 4.0.0 irrespective of the actual
|
||||
// compiler version:
|
||||
# define BOOST_TR1_STD_HEADER(name) <../4.0.0/name>
|
||||
/*
|
||||
* Before version 3.4.0 the 0 patch level was not part of the include path:
|
||||
*/
|
||||
# elif defined (__GNUC_PATCHLEVEL__) && ((__GNUC_PATCHLEVEL__ > 0) || \
|
||||
(__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \
|
||||
(__GNUC__ > 3))
|
||||
# define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name>
|
||||
# else
|
||||
# define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__/name>
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT) && !defined(__ICC) \
|
||||
&& (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__))
|
||||
// Disable use of #include_next on Linux as typically we are installed in a directory that is searched
|
||||
// *after* the std lib include path:
|
||||
# define BOOST_TR1_DISABLE_INCLUDE_NEXT
|
||||
# endif
|
||||
|
||||
# else
|
||||
# define BOOST_TR1_STD_HEADER(name) <../include/name>
|
||||
# endif
|
||||
|
||||
#if !defined(BOOST_TR1_STD_CHEADER)
|
||||
# define BOOST_TR1_STD_CHEADER(name) BOOST_TR1_STD_HEADER(name)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && !defined(BOOST_HAS_INCLUDE_NEXT)
|
||||
# define BOOST_HAS_INCLUDE_NEXT
|
||||
#endif
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
# define BOOST_HAS_CPP_0X
|
||||
#endif
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600) && !defined(BOOST_HAS_CPP_0X)
|
||||
# define BOOST_HAS_CPP_0X
|
||||
#endif
|
||||
//
|
||||
// We may be in the middle of parsing boost/config.hpp
|
||||
// when this header is included, so don't rely on config
|
||||
// stuff in the rest of this header...
|
||||
//
|
||||
// Find our actual std lib:
|
||||
//
|
||||
#if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
|
||||
//
|
||||
// We don't take this branch if BOOST_TR1_DISABLE_INCLUDE_NEXT
|
||||
// is defined as we may be installed in
|
||||
// /usr/include, in which case #include_next won't work as our
|
||||
// include path will occur AFTER the regular std lib one :-(
|
||||
//
|
||||
# ifndef BOOST_TR1_NO_RECURSION
|
||||
# define BOOST_TR1_NO_RECURSION
|
||||
# define BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
||||
# endif
|
||||
# include_next <utility>
|
||||
# if (__GNUC__ < 3)
|
||||
# include_next <algorithm>
|
||||
# include_next <iterator>
|
||||
# endif
|
||||
# ifdef BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
||||
# undef BOOST_TR1_NO_CONFIG_ALL_RECURSION
|
||||
# undef BOOST_TR1_NO_RECURSION
|
||||
# endif
|
||||
#else
|
||||
# include BOOST_TR1_STD_HEADER(utility)
|
||||
#endif
|
||||
|
||||
#include <boost/tr1/detail/config.hpp>
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
34
test/external/boost/tr1/detail/functor2iterator.hpp
vendored
Normal file
34
test/external/boost/tr1/detail/functor2iterator.hpp
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
// (C) Copyright John Maddock 2005.
|
||||
// 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)
|
||||
|
||||
#ifndef BOOST_TR1_FUNCTOR_IT_HPP_INCLUDED
|
||||
# define BOOST_TR1_FUNCTOR_IT_HPP_INCLUDED
|
||||
|
||||
# include <boost/iterator/iterator_facade.hpp>
|
||||
|
||||
namespace boost{ namespace tr1_details{
|
||||
|
||||
template <class Func, class R>
|
||||
struct functor2iterator : boost::iterator_facade<functor2iterator<Func,R>, const R, std::input_iterator_tag>
|
||||
{
|
||||
functor2iterator() : m_func(0){}
|
||||
functor2iterator(Func& f)
|
||||
: m_func(&f)
|
||||
{
|
||||
m_val = (*m_func)();
|
||||
}
|
||||
const R& dereference()const
|
||||
{ return m_val; }
|
||||
void increment(){ m_val = (*m_func)(); }
|
||||
bool equal(const functor2iterator&)const
|
||||
{ return false; }
|
||||
private:
|
||||
Func* m_func;
|
||||
R m_val;
|
||||
};
|
||||
|
||||
} }
|
||||
|
||||
#endif
|
||||
58
test/external/boost/tr1/detail/math_overloads.hpp
vendored
Normal file
58
test/external/boost/tr1/detail/math_overloads.hpp
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
// (C) Copyright John Maddock 2005.
|
||||
// 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)
|
||||
|
||||
#ifndef BOOST_TR1_MATH_OVERLOADS_HPP_INCLUDED
|
||||
# define BOOST_TR1_MATH_OVERLOADS_HPP_INCLUDED
|
||||
# include <boost/config.hpp>
|
||||
|
||||
# ifndef BOOST_NO_SFINAE
|
||||
# include <boost/utility/enable_if.hpp>
|
||||
# include <boost/type_traits/is_convertible.hpp>
|
||||
# define BOOST_TR1_MATH_RETURN(RET) typename ::boost::enable_if< ::boost::is_convertible<T,double>, RET >::type
|
||||
# else
|
||||
# define BOOST_TR1_MATH_RETURN(RET) RET
|
||||
# endif
|
||||
|
||||
# include <boost/type_traits/is_floating_point.hpp>
|
||||
# include <boost/type_traits/is_same.hpp>
|
||||
# include <boost/mpl/if.hpp>
|
||||
|
||||
namespace boost{ namespace tr1_detail{
|
||||
|
||||
template <class T, class U>
|
||||
struct largest_real
|
||||
{
|
||||
typedef typename boost::mpl::if_<
|
||||
boost::is_same<long double, T>,
|
||||
long double,
|
||||
typename boost::mpl::if_<
|
||||
boost::is_same<long double, U>,
|
||||
long double,
|
||||
typename boost::mpl::if_<
|
||||
boost::is_same<double, T>,
|
||||
double,
|
||||
typename boost::mpl::if_<
|
||||
boost::is_same<double, U>,
|
||||
double,
|
||||
float
|
||||
>::type
|
||||
>::type
|
||||
>::type
|
||||
>::type type;
|
||||
};
|
||||
|
||||
template <class T, class U>
|
||||
struct promote_to_real
|
||||
{
|
||||
typedef typename largest_real<
|
||||
typename boost::mpl::if_< boost::is_floating_point<T>, T, double>::type,
|
||||
typename boost::mpl::if_< boost::is_floating_point<U>, U, double>::type
|
||||
>::type type;
|
||||
};
|
||||
|
||||
} }
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user