mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 23:04:33 +02:00
MSVC 7.1 fix, for enums
[SVN r21795]
This commit is contained in:
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_EQUAL_TO_HPP_INCLUDED
|
#ifndef BOOST_MPL_EQUAL_TO_HPP_INCLUDED
|
||||||
#define BOOST_MPL_EQUAL_TO_HPP_INCLUDED
|
#define BOOST_MPL_EQUAL_TO_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/equal_to.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct equal_to
|
struct equal_to
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
{
|
||||||
== BOOST_MPL_AUX_VALUE_WKND(T2)::value
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
== BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_GREATER_HPP_INCLUDED
|
#ifndef BOOST_MPL_GREATER_HPP_INCLUDED
|
||||||
#define BOOST_MPL_GREATER_HPP_INCLUDED
|
#define BOOST_MPL_GREATER_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/greater.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct greater
|
struct greater
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
(BOOST_MPL_AUX_VALUE_WKND(T1)::value)
|
{
|
||||||
> (BOOST_MPL_AUX_VALUE_WKND(T2)::value)
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
> BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_GREATER_EQUAL_HPP_INCLUDED
|
#ifndef BOOST_MPL_GREATER_EQUAL_HPP_INCLUDED
|
||||||
#define BOOST_MPL_GREATER_EQUAL_HPP_INCLUDED
|
#define BOOST_MPL_GREATER_EQUAL_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/greater_equal.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct greater_equal
|
struct greater_equal
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
{
|
||||||
>= BOOST_MPL_AUX_VALUE_WKND(T2)::value
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
>= BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_LESS_HPP_INCLUDED
|
#ifndef BOOST_MPL_LESS_HPP_INCLUDED
|
||||||
#define BOOST_MPL_LESS_HPP_INCLUDED
|
#define BOOST_MPL_LESS_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/less.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct less
|
struct less
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
(BOOST_MPL_AUX_VALUE_WKND(T1)::value)
|
{
|
||||||
< (BOOST_MPL_AUX_VALUE_WKND(T2)::value)
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
< BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_LESS_EQUAL_HPP_INCLUDED
|
#ifndef BOOST_MPL_LESS_EQUAL_HPP_INCLUDED
|
||||||
#define BOOST_MPL_LESS_EQUAL_HPP_INCLUDED
|
#define BOOST_MPL_LESS_EQUAL_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/less_equal.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct less_equal
|
struct less_equal
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
{
|
||||||
<= BOOST_MPL_AUX_VALUE_WKND(T2)::value
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
<= BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
@@ -2,22 +2,18 @@
|
|||||||
#ifndef BOOST_MPL_NOT_EQUAL_TO_HPP_INCLUDED
|
#ifndef BOOST_MPL_NOT_EQUAL_TO_HPP_INCLUDED
|
||||||
#define BOOST_MPL_NOT_EQUAL_TO_HPP_INCLUDED
|
#define BOOST_MPL_NOT_EQUAL_TO_HPP_INCLUDED
|
||||||
|
|
||||||
// + file: boost/mpl/not_equal_to.hpp
|
// Copyright (c) 2000-03 Aleksey Gurtovoy
|
||||||
// + last modified: 25/feb/03
|
|
||||||
|
|
||||||
// Copyright (c) 2000-03
|
|
||||||
// Aleksey Gurtovoy
|
|
||||||
//
|
//
|
||||||
// Permission to use, copy, modify, distribute and sell this software
|
// Use, modification and distribution are subject to the Boost Software
|
||||||
// and its documentation for any purpose is hereby granted without fee,
|
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy
|
||||||
// provided that the above copyright notice appears in all copies and
|
// at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
// that both the copyright notice and this permission notice appear in
|
|
||||||
// supporting documentation. No representations are made about the
|
|
||||||
// suitability of this software for any purpose. It is provided "as is"
|
|
||||||
// without express or implied warranty.
|
|
||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/mpl for documentation.
|
// See http://www.boost.org/libs/mpl for documentation.
|
||||||
|
|
||||||
|
// $Source$
|
||||||
|
// $Date$
|
||||||
|
// $Revision$
|
||||||
|
|
||||||
#include "boost/mpl/bool.hpp"
|
#include "boost/mpl/bool.hpp"
|
||||||
#include "boost/mpl/integral_c.hpp"
|
#include "boost/mpl/integral_c.hpp"
|
||||||
#include "boost/mpl/aux_/value_wknd.hpp"
|
#include "boost/mpl/aux_/value_wknd.hpp"
|
||||||
@@ -34,10 +30,13 @@ template<
|
|||||||
>
|
>
|
||||||
struct not_equal_to
|
struct not_equal_to
|
||||||
{
|
{
|
||||||
BOOST_STATIC_CONSTANT(bool, value = (
|
enum
|
||||||
BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
{
|
||||||
!= BOOST_MPL_AUX_VALUE_WKND(T2)::value
|
msvc71_wknd_ = ( BOOST_MPL_AUX_VALUE_WKND(T1)::value
|
||||||
));
|
!= BOOST_MPL_AUX_VALUE_WKND(T2)::value )
|
||||||
|
};
|
||||||
|
|
||||||
|
BOOST_STATIC_CONSTANT(bool, value = msvc71_wknd_);
|
||||||
|
|
||||||
#if !defined(__BORLANDC__)
|
#if !defined(__BORLANDC__)
|
||||||
typedef bool_<value> type;
|
typedef bool_<value> type;
|
||||||
|
Reference in New Issue
Block a user