Boost logo

Boost :

From: Joel de Guzman (joel_at_[hidden])
Date: 2003-12-17 19:14:23


Hartmut Kaiser wrote:

> The only thing I could think of is to include both versions of Spirit into
> boost and wrapping them with pp constants to ensure, that actually only one
> version is tossed in:
>
> Directory structure:
>
> boost
> spirit
> spirit_1_6_x
> ... Version 1.6.x goes here
> spirit
> ... Head version goes here
>
> For _every_ Spirit header (spirit.hpp, spirit/core.hpp etc.) do something
> like:
>
> boost/spirit.hpp:
>
> #if defined(BOOST_SPIRIT_USE_VERSION_1_6)
> // this is the only header, which needs to be renamed
> #include <boost/spirit/spirit_1_6_x.hpp>
> #else
> #include <boost/spirit/spirit.hpp>
> #endif
>
> boost/spirit/core.hpp
>
> #if defined(BOOST_SPIRIT_USE_VERSION_1_6)
> #include <boost/spirit/spirit_1_6_x/core.hpp>
> #else
> #include <boost/spirit/spirit/core.hpp>
> #endif
>
> The drawback is, that it would triple the file count!
> Makes this any sense?

Makes sense. But is it worth it? See my other post/reply to
Giovanni.

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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