Boost logo

Boost :

Subject: [boost] [serialization] Warnings from spirit header in XML archive headers (non_terminal/rule.hpp)
From: Number Cruncher (number.cruncher_at_[hidden])
Date: 2010-05-25 09:01:34


I'm encountering many warning about a deprecated header when writing my
own XML input archive class:

In file included from
/opt/cfs/include/boost/archive/impl/basic_xml_grammar.hpp:59,
                  from
/opt/cfs/include/boost/archive/impl/xml_iarchive_impl.ipp:41,
/opt/cfs/include/boost/spirit/core/non_terminal/rule.hpp:18:4: warning:
#warning is a GCC extension
/opt/cfs/include/boost/spirit/core/non_terminal/rule.hpp:18:4: warning:
#warning "This header is deprecated. Please use:
boost/spirit/include/classic_rule.hpp"

This is because the serialization library is using "Spirit.Classic" and
should be including different headers:
http://www.boost.org/doc/libs/1_43_0/libs/spirit/doc/html/spirit/what_s_new/spirit_1_x.html

I've noticed patches related to this on the web, e.g.
http://gitorious.org/ryppl/doc/commit/2711cc4a1e8751455f9188ffefa9b34de13797a9

... and have repackaged a patch against the current 1.43.0 which fixes
these warnings? Please could this be committed for the next release?

Regards,
Simon




Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk