]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2011 Joel de Guzman | |
3 | Copyright (c) 2005-2006 Dan Marsden | |
4 | ||
5 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | ==============================================================================*/ | |
8 | #if !defined(BOOST_FUSION_STD_ARRAY_TAG_OF_01062013_1700) | |
9 | #define BOOST_FUSION_STD_ARRAY_TAG_OF_01062013_1700 | |
10 | ||
11 | #include <boost/fusion/support/tag_of_fwd.hpp> | |
12 | #include <array> | |
13 | #include <cstddef> | |
14 | ||
15 | namespace boost { namespace fusion | |
16 | { | |
17 | struct std_array_tag; | |
18 | struct fusion_sequence_tag; | |
19 | ||
20 | namespace traits | |
21 | { | |
22 | template<typename T, std::size_t N> | |
23 | #if defined(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS) | |
24 | struct tag_of<std::array<T,N>, void > | |
25 | #else | |
26 | struct tag_of<std::array<T,N> > | |
27 | #endif | |
28 | { | |
29 | typedef std_array_tag type; | |
30 | }; | |
31 | } | |
32 | }} | |
33 | ||
34 | namespace boost { namespace mpl | |
35 | { | |
36 | template<typename> | |
37 | struct sequence_tag; | |
38 | ||
39 | template<typename T, std::size_t N> | |
40 | struct sequence_tag<std::array<T,N> > | |
41 | { | |
42 | typedef fusion::fusion_sequence_tag type; | |
43 | }; | |
44 | ||
45 | template<typename T, std::size_t N> | |
46 | struct sequence_tag<std::array<T,N> const> | |
47 | { | |
48 | typedef fusion::fusion_sequence_tag type; | |
49 | }; | |
50 | }} | |
51 | ||
52 | #endif |