Boost logo

Boost :

From: Brad King (brad.king_at_[hidden])
Date: 2006-01-09 13:25:19


John Maddock wrote:
>>2.) What is the best way to encode knowledge of GCC-XML in boost
>>libraries? I suspect most of the knowledge can be put in the config
>>library when it defines macros encoding the availability of parser
>>features.
>
> I've added tentative support to Boost.Config, exactly how far that gets us
> remains to be seen :-)

Thanks, I'll give it a try when I get a chance. There is one problem I
see in gcc_xml.hpp:

# if __GCCXML__ < 30400
# define BOOST_NO_IS_ABSTRACT
# endif

GCC-XML defines __GCCXML__ with its *own* version number, not that of
the internal GCC parser. There is a simple mapping from GCC-XML version
number to the GCC parser version number (currently always 3.3). However
I can see that it would be a pain for every project to know about this
mapping. I should add more definitions like

__GCCXML_GNUC__
__GCCXML_GNUC_MINOR__
__GCCXML_GNUC_PATCHLEVEL__

so that the true GCC parser version is known. This also maintains the
option to replace the parser with another compiler in the future. Do
these names look okay to you John?

Thanks,
-Brad


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