1 // Copyright 2005 Daniel Wallin. 2 // Copyright 2005 Joel de Guzman. 3 // 4 // Use, modification and distribution is subject to the Boost Software 5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt) 7 // 8 // Modeled after range_ex, Copyright 2004 Eric Niebler 9 10 #ifndef BOOST_PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP 11 #define BOOST_PHOENIX_ALGORITHM_DETAIL_DECAY_ARRAY_HPP 12 13 namespace boost { namespace phoenix { 14 namespace detail 15 { 16 template<typename T> 17 struct decay_array 18 { 19 typedef T type; 20 }; 21 22 template<typename T, int N> 23 struct decay_array<T[N]> 24 { 25 typedef T* type; 26 }; 27 28 template<typename T, int N> 29 struct decay_array<T (&)[N]> 30 { 31 typedef T* type; 32 }; 33 } 34 }} 35 36 #endif 37