From a469a67ab8b5b5bb5f593e9c1e19d88837f9cd5f Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sat, 30 Aug 2014 20:39:07 +0400 Subject: [PATCH] Removed dependency on TypeTraits. --- core/include/boost/mpl/aux_/is_same.hpp | 28 +++++++++++++++++++++++++ core/include/boost/mpl/aux_/test.hpp | 4 ++-- core/index.html | 13 ++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 core/include/boost/mpl/aux_/is_same.hpp create mode 100644 core/index.html diff --git a/core/include/boost/mpl/aux_/is_same.hpp b/core/include/boost/mpl/aux_/is_same.hpp new file mode 100644 index 0000000..92e763c --- /dev/null +++ b/core/include/boost/mpl/aux_/is_same.hpp @@ -0,0 +1,28 @@ +#ifndef BOOST_MPL_AUX_IS_SAME_HPP_INCLUDED +#define BOOST_MPL_AUX_IS_SAME_HPP_INCLUDED + +// Copyright Andrey Semashev 2014 +// +// Distributed under 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) +// +// See http://www.boost.org/libs/mpl for documentation. + +// $Id$ +// $Date$ +// $Revision$ + +#include + +namespace boost { namespace mpl { namespace aux { + +template< typename T, typename U > +struct is_same : mpl::false_ {}; + +template< typename T > +struct is_same< T, T > : mpl::true_ {}; + +}}} + +#endif // BOOST_MPL_AUX_IS_SAME_HPP_INCLUDED diff --git a/core/include/boost/mpl/aux_/test.hpp b/core/include/boost/mpl/aux_/test.hpp index 8d1dea6..7d2c284 100644 --- a/core/include/boost/mpl/aux_/test.hpp +++ b/core/include/boost/mpl/aux_/test.hpp @@ -17,10 +17,9 @@ #include #include #include +#include #include -#include - int main() { return boost::report_errors(); @@ -28,5 +27,6 @@ int main() using namespace boost; using namespace mpl; +using boost::mpl::aux_::is_same; #endif // BOOST_MPL_AUX_TEST_HPP_INCLUDED diff --git a/core/index.html b/core/index.html new file mode 100644 index 0000000..12e6bf3 --- /dev/null +++ b/core/index.html @@ -0,0 +1,13 @@ + + + + + +Automatic redirection failed, please go to +../doc/index.html
+

© Copyright Beman Dawes, 2001

+

Distributed under the Boost Software License, Version 1.0. (See accompanying +file LICENSE_1_0.txt or copy +at www.boost.org/LICENSE_1_0.txt)

+ + \ No newline at end of file