]> git.sesse.net Git - casparcg/blob - dependencies/boost/boost/phoenix/statement/sequence.hpp
Manually merged pull request #222
[casparcg] / dependencies / boost / boost / phoenix / statement / sequence.hpp
1 /*==============================================================================
2     Copyright (c) 2001-2010 Joel de Guzman
3     Copyright (c) 2010 Eric Niebler
4     Copyright (c) 2010 Thomas Heller
5
6     Distributed under the Boost Software License, Version 1.0. (See accompanying
7     file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
9
10 #ifndef BOOST_PHOENIX_STATEMENT_SEQUENCE_HPP
11 #define BOOST_PHOENIX_STATEMENT_SEQUENCE_HPP
12
13 #include <boost/phoenix/core/limits.hpp>
14 #include <boost/phoenix/core/expression.hpp>
15 #include <boost/phoenix/core/meta_grammar.hpp>
16
17 namespace boost { namespace phoenix
18 {
19     namespace expression
20     {
21         template <typename A0, typename A1>
22         struct sequence
23             : expr<proto::tag::comma, A0, A1>
24         {};
25     }
26
27     namespace rule
28     {
29         struct sequence
30             : expression::sequence<
31                 meta_grammar
32               , meta_grammar
33             >
34         {};
35     }
36
37     template <typename Dummy>
38     struct meta_grammar::case_<proto::tag::comma, Dummy>
39         : enable_rule<rule::sequence, Dummy>
40     {};
41
42 }}
43
44 #endif