• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Spirit V2.2</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Spirit 2.5.8">
8<link rel="up" href="../what_s_new.html" title="What's New">
9<link rel="prev" href="spirit_2_3.html" title="Spirit V2.3">
10<link rel="next" href="spirit_2_1.html" title="Spirit V2.1">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="spirit_2_3.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../what_s_new.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="spirit_2_1.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="spirit.what_s_new.spirit_2_2"></a><a class="link" href="spirit_2_2.html" title="Spirit V2.2">Spirit V2.2</a>
28</h3></div></div></div>
29<h5>
30<a name="spirit.what_s_new.spirit_2_2.h0"></a>
31        <span class="phrase"><a name="spirit.what_s_new.spirit_2_2.what_s_changed_in__emphasis_spirit_qi__emphasis__and__emphasis_spirit_karma__emphasis__from_v2_1__boost_v1_41_0__to_v2_2__boost_v1_42_0_"></a></span><a class="link" href="spirit_2_2.html#spirit.what_s_new.spirit_2_2.what_s_changed_in__emphasis_spirit_qi__emphasis__and__emphasis_spirit_karma__emphasis__from_v2_1__boost_v1_41_0__to_v2_2__boost_v1_42_0_">What's
32        changed in <span class="emphasis"><em>Spirit.Qi</em></span> and <span class="emphasis"><em>Spirit.Karma</em></span>
33        from V2.1 (Boost V1.41.0) to V2.2 (Boost V1.42.0)</a>
34      </h5>
35<h5>
36<a name="spirit.what_s_new.spirit_2_2.h1"></a>
37        <span class="phrase"><a name="spirit.what_s_new.spirit_2_2.new_features"></a></span><a class="link" href="spirit_2_2.html#spirit.what_s_new.spirit_2_2.new_features">New
38        Features</a>
39      </h5>
40<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
41<li class="listitem">
42            Added <code class="computeroutput"><span class="identifier">auto_</span></code> component
43            in <span class="emphasis"><em>Spirit.Qi</em></span> and <span class="emphasis"><em>Spirit.Karma</em></span>,
44            added API functions <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span></code><a class="link" href="../qi/reference/parse_api/create_parser.html" title="API for Automatic Parser Creation"><code class="computeroutput"><span class="identifier">create_parser</span></code></a> and <code class="computeroutput"><span class="identifier">karma</span><span class="special">::</span></code><a class="link" href="../karma/reference/generate_api/create_generator.html" title="API for Automatic Generator Creation"><code class="computeroutput"><span class="identifier">create_generator</span></code></a>.
45          </li>
46<li class="listitem">
47            Added <code class="computeroutput"><span class="identifier">auto_</span></code> based overloads
48            for all API functions taking no attributes (see <a class="link" href="../qi/reference/parse_api.html" title="Parser API"><span class="emphasis"><em>Qi</em></span>
49            API</a> and <a class="link" href="../karma/reference/generate_api.html" title="Generator API"><span class="emphasis"><em>Karma</em></span>
50            API</a>).
51          </li>
52<li class="listitem">
53            Added <a class="link" href="../karma/reference/directive/columns.html" title="Generator Directive Separating Output Into Columns (columns[])"><code class="computeroutput"><span class="identifier">karma</span><span class="special">::</span><span class="identifier">columns</span></code></a> directive.
54          </li>
55<li class="listitem">
56            Added <a class="link" href="../karma/reference/string/symbols.html" title="Symbols Generator (symbols)"><code class="computeroutput"><span class="identifier">karma</span><span class="special">::</span><span class="identifier">symbols</span><span class="special">&lt;</span><span class="identifier">Attr</span><span class="special">,</span> <span class="identifier">T</span><span class="special">&gt;</span></code></a>
57            generator.
58          </li>
59<li class="listitem">
60            The <span class="emphasis"><em>Spirit.Qi</em></span> customization point <a class="link" href="../advanced/customize/store_value/push_back.html" title="Store a Parsed Attribute Value into a Container (Qi)"><code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">push_back_container</span></code></a> now returns
61            a <code class="computeroutput"><span class="keyword">bool</span></code> to report whether
62            the item has been added to the container.
63          </li>
64<li class="listitem">
65            Added an overload for <a class="link" href="../karma/reference/directive/maxwidth.html" title="Generator Directives Controlling the Maximum Field Width (maxwidth[])"><code class="computeroutput"><span class="identifier">karma</span><span class="special">::</span><span class="identifier">maxwidth</span></code></a> directive allowing
66            to specify an additional parameter (any compatible output iterator) receiving
67            the 'overspilled' output (output not fitting into the maxwidth limit).
68          </li>
69<li class="listitem">
70            It is now possible to use Phoenix expressions as <span class="emphasis"><em>Spirit.Karma</em></span>
71            attributes.
72          </li>
73<li class="listitem">
74            Added <a class="link" href="../support/multi_pass.html#spirit.support.multi_pass.reading_from_standard_input_streams"><code class="computeroutput"><span class="identifier">basic_istream_iterator</span><span class="special">&lt;</span><span class="identifier">Char</span><span class="special">,</span> <span class="identifier">Traits</span><span class="special">&gt;</span></code></a>
75            usable as an equivalent for <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">istream_iterator</span></code>
76            except its a <a href="http://en.cppreference.com/w/cpp/named_req/ForwardIterator" target="_top"><code class="computeroutput"><span class="identifier">ForwardIterator</span></code></a> allowing to
77            parse directly from any <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span></code>.
78          </li>
79<li class="listitem">
80            Added <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span></code><a class="link" href="../qi/reference/directive/matches.html" title="Directive Testing if Parser Succeeded (matches[])"><code class="computeroutput"><span class="identifier">matches</span></code></a>
81            directive.
82          </li>
83</ul></div>
84<h5>
85<a name="spirit.what_s_new.spirit_2_2.h2"></a>
86        <span class="phrase"><a name="spirit.what_s_new.spirit_2_2.bug_fixes"></a></span><a class="link" href="spirit_2_2.html#spirit.what_s_new.spirit_2_2.bug_fixes">Bug
87        Fixes</a>
88      </h5>
89<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
90<li class="listitem">
91            Fixed karma::alternatives to work with embedded containers of hold_any
92            (i.e. constructs like <code class="computeroutput"><span class="special">*</span><span class="identifier">stream</span> <span class="special">|</span>
93            <span class="string">"empty"</span></code> (which fixes
94            the Karma example basic_facilities.cpp).
95          </li>
96<li class="listitem">
97            Fixed numeric <span class="emphasis"><em>Spirit.Karma</em></span> generators for character
98            types.
99          </li>
100<li class="listitem">
101            Fixed <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span><span class="identifier">repeat</span><span class="special">[]</span></code>
102            for unused attributes.
103          </li>
104<li class="listitem">
105            Fixed rare compilation problem in <code class="computeroutput"><span class="identifier">karma</span><span class="special">::</span><span class="identifier">repeat</span><span class="special">[]</span></code>.
106          </li>
107<li class="listitem">
108            Fixed sequences in <span class="emphasis"><em>Spirit.Qi</em></span> and <span class="emphasis"><em>Spirit.Karma</em></span>
109            to compile properly if the attribute is a (STL) container of (STL) containers.
110          </li>
111<li class="listitem">
112            Fixed a problem in <code class="computeroutput"><span class="identifier">lex</span><span class="special">::</span><span class="identifier">token_def</span><span class="special">::</span><span class="identifier">what</span></code>.
113          </li>
114<li class="listitem">
115            Fixed <span class="emphasis"><em>Spirit.Qi</em></span> symbols not to match substrings
116            anymore. Added <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span><span class="identifier">symbols</span><span class="special">::</span><span class="identifier">prefix_find</span></code> to allow matching of (prefix-)
117            substrings.
118          </li>
119<li class="listitem">
120            Inherited parameters for rule's usually have to be wrapped in function
121            objects (i.e. <code class="computeroutput"><span class="identifier">phoenix</span><span class="special">::</span><span class="identifier">val</span></code>),
122            for integral values this was not necessary. Now all string types can
123            be passed without being wrapped as well (i.e. <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code>,
124            <code class="computeroutput"><span class="keyword">char</span> <span class="keyword">const</span><span class="special">*</span></code>, etc.).
125          </li>
126<li class="listitem">
127            Added concept checks to all relevant <span class="emphasis"><em>Spirit.Qi</em></span> API
128            functions enforcing the iterator to be at least of the type <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">forward_iterator_tag</span></code>.
129          </li>
130<li class="listitem">
131            Fixed the <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span><span class="identifier">match</span></code> and <code class="computeroutput"><span class="identifier">qi</span><span class="special">::</span><span class="identifier">phrase_match</span></code>
132            set of API functions not to internally utilize a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">stream_iterator</span></code>
133            anymore as this iterator is of the type <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">input_iterator_tag</span></code>
134            only, which is not sufficient for <span class="emphasis"><em>Spirit.Qi</em></span>.
135          </li>
136</ul></div>
137</div>
138<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
139<td align="left"></td>
140<td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
141        Distributed under the Boost Software License, Version 1.0. (See accompanying
142        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
143      </p>
144</div></td>
145</tr></table>
146<hr>
147<div class="spirit-nav">
148<a accesskey="p" href="spirit_2_3.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../what_s_new.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="spirit_2_1.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
149</div>
150</body>
151</html>
152