fix Borland regression

[SVN r18621]
This commit is contained in:
Aleksey Gurtovoy
2003-05-30 23:18:25 +00:00
parent f33185ee8b
commit b275b77f0e

View File

@@ -1,9 +1,11 @@
//-----------------------------------------------------------------------------
// boost mpl/aux_/vector/iterator.hpp header file #ifndef BOOST_MPL_AUX_VECTOR_ITERATOR_HPP_INCLUDED
// See http://www.boost.org for updates, documentation, and revision history. #define BOOST_MPL_AUX_VECTOR_ITERATOR_HPP_INCLUDED
//-----------------------------------------------------------------------------
// // + file: boost/mpl/aux_/vector/iterator.hpp
// Copyright (c) 2000-02 // + last modified: 30/may/03
// Copyright (c) 2000-03
// Aleksey Gurtovoy // Aleksey Gurtovoy
// //
// Permission to use, copy, modify, distribute and sell this software // Permission to use, copy, modify, distribute and sell this software
@@ -13,16 +15,16 @@
// supporting documentation. No representations are made about the // supporting documentation. No representations are made about the
// suitability of this software for any purpose. It is provided "as is" // suitability of this software for any purpose. It is provided "as is"
// without express or implied warranty. // without express or implied warranty.
//
#ifndef BOOST_MPL_AUX_VECTOR_ITERATOR_HPP_INCLUDED // See http://www.boost.org/libs/mpl for documentation.
#define BOOST_MPL_AUX_VECTOR_ITERATOR_HPP_INCLUDED
#include "boost/mpl/iterator_tag.hpp" #include "boost/mpl/iterator_tag.hpp"
#include "boost/mpl/plus.hpp" #include "boost/mpl/plus.hpp"
#include "boost/mpl/minus.hpp" #include "boost/mpl/minus.hpp"
#include "boost/mpl/vector/aux_/item.hpp"
#include "boost/mpl/aux_/iterator_names.hpp" #include "boost/mpl/aux_/iterator_names.hpp"
#include "boost/mpl/aux_/value_wknd.hpp" #include "boost/mpl/aux_/value_wknd.hpp"
#include "boost/mpl/vector/aux_/item.hpp" #include "boost/mpl/aux_/config/workaround.hpp"
namespace boost { namespace boost {
namespace mpl { namespace mpl {
@@ -54,8 +56,15 @@ struct vector_iterator
template< typename Other > template< typename Other >
struct BOOST_MPL_AUX_ITERATOR_DISTANCE struct BOOST_MPL_AUX_ITERATOR_DISTANCE
#if !BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
: minus<typename Other::pos,Pos> : minus<typename Other::pos,Pos>
{ {
#else
{
typedef typename minus<typename Other::pos,Pos>::type type;
BOOST_STATIC_CONSTANT(typename Pos::value_type
, value = (minus<typename Other::pos,Pos>::value));
#endif
}; };
}; };