First public contribution.
3 // Copyright Thorsten Ottosen 2003-2004. Use, modification and
4 // distribution is subject to the Boost Software License, Version
5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // For more information, see http://www.boost.org/libs/range/
11 #ifndef BOOST_RANGE_CONFIG_HPP
12 #define BOOST_RANGE_CONFIG_HPP
14 #include <boost/detail/workaround.hpp>
16 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
20 #include <boost/config.hpp>
22 #ifdef BOOST_RANGE_DEDUCED_TYPENAME
23 #error "macro already defined!"
26 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
27 # define BOOST_RANGE_DEDUCED_TYPENAME typename
29 # if BOOST_WORKAROUND(BOOST_MSVC, == 1300) && !defined(_MSC_EXTENSIONS)
30 # define BOOST_RANGE_DEDUCED_TYPENAME typename
32 # define BOOST_RANGE_DEDUCED_TYPENAME BOOST_DEDUCED_TYPENAME
36 #ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
37 #error "macro already defined!"
40 //#if BOOST_WORKAROUND( BOOST_MSVC, < 1300 ) || __MWERKS__ <= 0x3003
41 #if _MSC_VER <= 1300 && !defined( __COMO__ ) && !defined( __GNUC__ ) && __MWERKS__ <= 0x3003
42 #define BOOST_RANGE_NO_ARRAY_SUPPORT 1
45 #ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
46 #define BOOST_RANGE_ARRAY_REF() (boost_range_array)
47 #define BOOST_RANGE_NO_STATIC_ASSERT
49 #define BOOST_RANGE_ARRAY_REF() (&boost_range_array)