Boost logo

Boost-Build :

Subject: Re: [Boost-build] generators for creating HPP files?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-26 08:37:57


AMDG

Oliver Kowalke wrote:
> How can I use generators inside Jamfile to provide specifi HPP files
> depending upon conditions evaluated inside the Jamfile?
>
> boost/my_lib/a.tmpl
> boost/my_lib/b.tmpl
> should be copied to boost/my_lib/c.hpp depending on <toolset>gcc.

This is a bad idea for a boost library. People like me
try to compile with both msvc and gcc using the same
headers. You can do it with Boost.Build, but it would
be better to use

c.hpp:
#ifdef __GNUC__
#include <boost/my_lib/a.tmpl>
#else
#include <boost/my_lib/b.tmpl>
#endif

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk