boost_no_cxx11_hdr_array.ipp 612 B

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