Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / config / test / boost_no_cxx11_hdr_array.ipp
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_ARRAY
10 //  TITLE:         C++0x header <array> unavailable
11 //  DESCRIPTION:   The standard library does not supply C++0x header <array>
12
13 #include <array>
14
15 namespace boost_no_cxx11_hdr_array {
16
17 int test()
18 {
19   std::array<int, 3> a = {{ 1, 2, 3 }};
20   return a.size() == 3 ? 0 : 1;
21 }
22
23 }