1 /*=============================================================================
2 Copyright (c) 1999-2003 Jaakko Jarvi
3 Copyright (c) 2001-2011 Joel de Guzman
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(FUSION_AS_FUSION_ELEMENT_05052005_0338)
9 #define FUSION_AS_FUSION_ELEMENT_05052005_0338
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/ref.hpp>
14 #ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
18 namespace boost { namespace fusion { namespace detail
21 struct as_fusion_element
27 struct as_fusion_element<reference_wrapper<T> >
32 #ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
34 struct as_fusion_element<std::reference_wrapper<T> >
40 template <typename T, int N>
41 struct as_fusion_element<T[N]>
43 typedef const T(&type)[N];
46 template <typename T, int N>
47 struct as_fusion_element<volatile T[N]>
49 typedef const volatile T(&type)[N];
52 template <typename T, int N>
53 struct as_fusion_element<const volatile T[N]>
55 typedef const volatile T(&type)[N];