Removed dependency on TypeTraits.

This commit is contained in:
Andrey Semashev
2014-08-30 20:39:07 +04:00
parent e296279084
commit a469a67ab8
3 changed files with 43 additions and 2 deletions

View File

@@ -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 <boost/mpl/bool.hpp>
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

View File

@@ -17,10 +17,9 @@
#include <boost/mpl/aux_/test/test_case.hpp>
#include <boost/mpl/aux_/test/data.hpp>
#include <boost/mpl/aux_/test/assert.hpp>
#include <boost/mpl/aux_/is_same.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/type_traits/is_same.hpp>
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

13
core/index.html Normal file
View File

@@ -0,0 +1,13 @@
<html>
<head>
<meta http-equiv="refresh" content="0; URL=../doc/index.html">
</head>
<body>
Automatic redirection failed, please go to
<a href="../doc/index.html">../doc/index.html</a>.&nbsp;<hr>
<p><EFBFBD> Copyright Beman Dawes, 2001</p>
<p>Distributed under the Boost Software License, Version 1.0. (See accompanying
file <a href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy
at <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a>)</p>
</body>
</html>