1 // 2 // detail/array.hpp 3 // ~~~~~~~~~~~~~~~~ 4 // 5 // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6 // 7 // Distributed under the Boost Software License, Version 1.0. (See accompanying 8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9 // 10 11 #ifndef ASIO_DETAIL_ARRAY_HPP 12 #define ASIO_DETAIL_ARRAY_HPP 13 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 15 # pragma once 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 17 18 #include "asio/detail/config.hpp" 19 20 #if defined(ASIO_HAS_STD_ARRAY) 21 # include <array> 22 #else // defined(ASIO_HAS_STD_ARRAY) 23 # include <boost/array.hpp> 24 #endif // defined(ASIO_HAS_STD_ARRAY) 25 26 namespace asio { 27 namespace detail { 28 29 #if defined(ASIO_HAS_STD_ARRAY) 30 using std::array; 31 #else // defined(ASIO_HAS_STD_ARRAY) 32 using boost::array; 33 #endif // defined(ASIO_HAS_STD_ARRAY) 34 35 } // namespace detail 36 } // namespace asio 37 38 #endif // ASIO_DETAIL_ARRAY_HPP 39