File indexing completed on 2024-11-15 09:30:31
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_RANGE_CONFIG_HPP
0012 #define BOOST_RANGE_CONFIG_HPP
0013
0014 #include <boost/detail/workaround.hpp>
0015
0016 #if defined(_MSC_VER)
0017 # pragma once
0018 #endif
0019
0020 #include <boost/config.hpp>
0021
0022 #ifdef BOOST_RANGE_DEDUCED_TYPENAME
0023 #error "macro already defined!"
0024 #endif
0025
0026 #if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
0027 # define BOOST_RANGE_DEDUCED_TYPENAME typename
0028 #else
0029 #define BOOST_RANGE_DEDUCED_TYPENAME BOOST_DEDUCED_TYPENAME
0030 #endif
0031
0032 #ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
0033 #error "macro already defined!"
0034 #endif
0035
0036 #if BOOST_WORKAROUND( __MWERKS__, <= 0x3003 )
0037 #define BOOST_RANGE_NO_ARRAY_SUPPORT 1
0038 #endif
0039
0040 #ifdef BOOST_RANGE_NO_ARRAY_SUPPORT
0041 #define BOOST_RANGE_ARRAY_REF() (boost_range_array)
0042 #define BOOST_RANGE_NO_STATIC_ASSERT
0043 #else
0044 #define BOOST_RANGE_ARRAY_REF() (&boost_range_array)
0045 #endif
0046
0047 #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
0048 # define BOOST_RANGE_UNUSED __attribute__((unused))
0049 #else
0050 # define BOOST_RANGE_UNUSED
0051 #endif
0052
0053
0054
0055 #endif
0056