mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-02 06:15:23 +02:00
Removed dependency on TypeTraits.
This commit is contained in:
28
core/include/boost/mpl/aux_/is_same.hpp
Normal file
28
core/include/boost/mpl/aux_/is_same.hpp
Normal 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
|
@@ -17,10 +17,9 @@
|
|||||||
#include <boost/mpl/aux_/test/test_case.hpp>
|
#include <boost/mpl/aux_/test/test_case.hpp>
|
||||||
#include <boost/mpl/aux_/test/data.hpp>
|
#include <boost/mpl/aux_/test/data.hpp>
|
||||||
#include <boost/mpl/aux_/test/assert.hpp>
|
#include <boost/mpl/aux_/test/assert.hpp>
|
||||||
|
#include <boost/mpl/aux_/is_same.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
|
||||||
#include <boost/type_traits/is_same.hpp>
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
@@ -28,5 +27,6 @@ int main()
|
|||||||
|
|
||||||
using namespace boost;
|
using namespace boost;
|
||||||
using namespace mpl;
|
using namespace mpl;
|
||||||
|
using boost::mpl::aux_::is_same;
|
||||||
|
|
||||||
#endif // BOOST_MPL_AUX_TEST_HPP_INCLUDED
|
#endif // BOOST_MPL_AUX_TEST_HPP_INCLUDED
|
||||||
|
13
core/index.html
Normal file
13
core/index.html
Normal 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>. <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>
|
Reference in New Issue
Block a user