Hartmut Kaiser | 8 Feb 17:09
Picon

[Boost.Spirit] How to Adapt Templates as a Fusion Sequence

Boost.Spirit has posted a new item, 'How to Adapt Templates as a Fusion
Sequence'

Here is another question raised from time to time: "I know how to use a plain
struct as an attribute for a sequence parser in Qi by adapting it with
BOOST_FUSION_ADAPT_STRUCT. Unfortunately this does not work if the struct is a
template. What can I do in this case?".

There have been plans for a while to create a separate Fusion facility
BOOST_FUSION_ADAPT_TPL_STRUCT allowing to adapt templated data types, but this
is not in place yet. Today I will describe a trick you can apply to adapt your
templates into 'proper' Fusion sequences anyway.

You may view the latest post at
http://boost-spirit.com/home/2010/02/08/how-to-adapt-templates-as-a-fusion-sequence/

You received this e-mail because you asked to be notified when new updates are
posted.
Best regards,
Hartmut Kaiser
hartmut.kaiser <at> gmail.com

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Spirit-general mailing list
Spirit-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spirit-general

Gmane