2009-05-30 11:22:59 +00:00
|
|
|
// (C) Copyright Beman Dawes 2009
|
|
|
|
|
|
|
|
// 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 more information.
|
|
|
|
|
2012-05-15 11:57:21 +00:00
|
|
|
// MACRO: BOOST_NO_CXX11_HDR_ARRAY
|
2009-05-30 11:22:59 +00:00
|
|
|
// TITLE: C++0x header <array> unavailable
|
|
|
|
// DESCRIPTION: The standard library does not supply C++0x header <array>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
2012-05-15 11:57:21 +00:00
|
|
|
namespace boost_no_cxx11_hdr_array {
|
2009-05-30 11:22:59 +00:00
|
|
|
|
|
|
|
int test()
|
|
|
|
{
|
2013-02-24 19:07:59 +00:00
|
|
|
std::array<int, 3> a = {{ 1, 2, 3 }};
|
2011-04-25 12:10:48 +00:00
|
|
|
return a.size() == 3 ? 0 : 1;
|
2009-05-30 11:22:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|