Removed dependency on TypeTraits.

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

No files matched your search

+28
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
+2 -2
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