...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
traits::transform_attribute
now takes
an additional template parameter Domain
allowing to better specialize the customization point for either qi::domain
or karma::domain
.
Important | |
---|---|
This is a interface breaking change requiring to modify existing code.
If you have a specialization of this customization point in your code you
need to add the specialization for the new template parameter, i.e. either
|
pre
of the
customization point traits::transform_attribute
to convert
the supplied attribute to the exposed attribute type, as needed. The
functions post
and fail
of this customization point are
not invoked by this component (as this would not make any sense).
pre
of the customization point traits::transform_attribute
to convert
the supplied attribute to the consumed attribute type, as needed.
skip
directive which is semantically
equivalent to the Spirit.Karma omit
directive except that it
will not execute the embedded generator.
strict[]
and relaxed[]
allowing to switch between the two.
duplicate
directive which duplicates
the supplied attribute to all elements of an embedded generator sequence.
char_("a",
"z")
instead of char_('a', 'z')
making it consistent with the syntax
of the char_('a')
component
(which can be written as char_("a")
as well). Please note that the mixed
syntax forms, i.e. char_('a',
"z")
and char_("a",
'z')
,
are not supported.
repeat
(num)[a]
generator at any position (well, actually you can have any repetitive
container at any position now, but this doesn't always make sense as
it normally would eat up all supplied attribute values).