]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [#unpaired] |
2 | [section unpaired] | |
3 | ||
4 | [h1 Synopsis] | |
5 | ||
6 | namespace error | |
7 | { | |
8 | template <int Line, int Col, class Msg = boost::mpl::na> | |
9 | struct unpaired; | |
10 | } | |
11 | ||
12 | This is a [link parsing_error_message parsing error message]. | |
13 | ||
14 | [table Arguments | |
15 | [[Name] [Type]] | |
16 | [[`Line`] [`int` value]] | |
17 | [[`Col`] [`int` value]] | |
18 | [[`Msg`] [[link metaprogramming_value template metaprogramming value]]] | |
19 | ] | |
20 | ||
21 | [h1 Description] | |
22 | ||
23 | Template class representing the error that the closing element of an | |
24 | "['opening element] ... ['closing element]" structure is missing. (eg. a closing | |
25 | paren is missing). `Line` and `Col` point to the beginning of the | |
26 | ['opening element] (eg. the opening paren). `Msg` is the error message the | |
27 | parser trying to parse the ['closing element] failed with. | |
28 | ||
29 | It supports currying: `unpaired<Line, Col>` is a | |
30 | [link metafunction_class template metafunction class] taking one argument: the | |
31 | `Msg` element and returning the corresponding `unpaired` value. | |
32 | ||
33 | [h1 Header] | |
34 | ||
35 | #include <boost/metaparse/error/unpaired.hpp> | |
36 | ||
37 | [endsect] | |
38 |