Files
boost_range/include/boost/range/config.hpp

51 lines
1.1 KiB
C++
Raw Normal View History

2004-06-29 02:50:07 +00:00
// Boost.Range library
//
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
// distribution is subject to 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)
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_CONFIG_HPP
#define BOOST_RANGE_CONFIG_HPP
2004-09-12 10:58:22 +00:00
#include <boost/detail/workaround.hpp>
2004-06-29 02:50:07 +00:00
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif
#include <boost/config.hpp>
2004-07-23 14:00:36 +00:00
#ifdef BOOST_RANGE_DEDUCED_TYPENAME
2004-06-29 02:50:07 +00:00
#error "macro already defined!"
#endif
2004-09-02 17:28:57 +00:00
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
2004-07-23 14:00:36 +00:00
#define BOOST_RANGE_DEDUCED_TYPENAME
2004-06-29 02:50:07 +00:00
#else
2004-07-23 14:00:36 +00:00
#define BOOST_RANGE_DEDUCED_TYPENAME BOOST_DEDUCED_TYPENAME
2004-06-29 02:50:07 +00:00
#endif
2004-07-23 14:00:36 +00:00
#ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
2004-06-29 02:50:07 +00:00
#error "macro already defined!"
#endif
2005-04-07 13:27:30 +00:00
#if BOOST_WORKAROUND( BOOST_MSVC, <= 1200 ) || __MWERKS__ <= 0x3003
2004-07-23 14:00:36 +00:00
#define BOOST_RANGE_NO_ARRAY_SUPPORT 1
2004-06-29 02:50:07 +00:00
#endif
2004-07-23 14:00:36 +00:00
#ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
#define BOOST_RANGE_ARRAY_REF() (array)
#define BOOST_RANGE_NO_STATIC_ASSERT
2004-06-29 02:50:07 +00:00
#else
2004-07-23 14:00:36 +00:00
#define BOOST_RANGE_ARRAY_REF() (&array)
2004-06-29 02:50:07 +00:00
#endif
#endif