1// (C) Copyright Beman Dawes 2009 2 3// Use, modification and distribution are subject to the 4// Boost Software License, Version 1.0. (See accompanying file 5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 6 7// See http://www.boost.org/libs/config for more information. 8 9// MACRO: BOOST_NO_CXX11_HDR_FORWARD_LIST 10// TITLE: C++0x header <forward_list> unavailable 11// DESCRIPTION: The standard library does not supply C++0x header <forward_list> 12 13#include <forward_list> 14 15namespace boost_no_cxx11_hdr_forward_list { 16 17int test() 18{ 19 std::forward_list<int> l(2u, 2); 20 return *l.begin() == 2 ? 0 : 1; 21} 22 23} 24