]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2001-2011 Joel de Guzman | |
3 | Copyright (c) 2007 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_APPLY_TRANSFORM_RESULT_02092006_1936) | |
9 | #define BOOST_FUSION_APPLY_TRANSFORM_RESULT_02092006_1936 | |
10 | ||
11 | #include <boost/fusion/support/config.hpp> | |
12 | #include <boost/utility/result_of.hpp> | |
13 | ||
14 | namespace boost { namespace fusion | |
15 | { | |
16 | struct void_; | |
17 | ||
18 | namespace detail | |
19 | { | |
20 | template <typename F> | |
21 | struct apply_transform_result | |
22 | { | |
23 | template <typename T0, typename T1 = void_> | |
24 | struct apply | |
25 | : boost::result_of<F(T0, T1)> | |
26 | {}; | |
27 | ||
28 | template <typename T0> | |
29 | struct apply<T0, void_> | |
30 | : boost::result_of<F(T0)> | |
31 | {}; | |
32 | }; | |
33 | } | |
34 | }} | |
35 | ||
36 | #endif | |
37 | ||
38 |