// (C) Copyright John Maddock 2001. // Use, modification and distribution are 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) // See http://www.boost.org/libs/config for most recent version. // MACRO: BOOST_NO_RANGE_BASED_FOR // TITLE: C++0x range-based for unavailable // DESCRIPTION: The compiler does not support C++0x range-based for. #include namespace boost_no_range_based_for { int test() { std::vector vec; for (int x : vec) {} int ar[2] = {2, 2}; for (int x : ar) {} return 0; } }