Rev | Line | |
---|
[857] | 1 | /*=============================================================================
|
---|
| 2 | Copyright (c) 2003 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 | #if !defined(FUSION_VALUE_OF_HPP)
|
---|
| 9 | #define FUSION_VALUE_OF_HPP
|
---|
| 10 |
|
---|
| 11 | #include <boost/spirit/fusion/detail/config.hpp>
|
---|
| 12 |
|
---|
| 13 | namespace boost { namespace fusion
|
---|
| 14 | {
|
---|
| 15 | namespace meta
|
---|
| 16 | {
|
---|
| 17 | template <typename Tag>
|
---|
| 18 | struct value_impl
|
---|
| 19 | {
|
---|
| 20 | template <typename Iterator>
|
---|
| 21 | struct apply
|
---|
| 22 | {
|
---|
| 23 | // VC6 needs this
|
---|
| 24 | typedef int type;
|
---|
| 25 | };
|
---|
| 26 | };
|
---|
| 27 |
|
---|
| 28 | template <typename Iterator>
|
---|
| 29 | struct value_of
|
---|
| 30 | {
|
---|
| 31 | typedef typename
|
---|
| 32 | value_impl<FUSION_GET_TAG(Iterator)>::
|
---|
| 33 | template apply<Iterator>::type
|
---|
| 34 | type;
|
---|
| 35 | };
|
---|
| 36 | }
|
---|
| 37 | }}
|
---|
| 38 |
|
---|
| 39 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.