|
Boost : |
Subject: Re: [boost] Testing macros..
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-05-22 21:53:14
On Sat, May 22, 2010 at 8:07 AM, Rene Rivera <grafikrobot_at_[hidden]> wrote:
> Once upon a time I did a bunch of work towards a Boost Predef library. The
> goal was to have a consistent set of version and feature definitions as
> could be determined from the predefined macros of toolsets
> <https://svn.boost.org/svn/boost/sandbox/predef/>. But the work stalled for
> one basic reason.. How do I write tests for such a library? The only other
> library that approaches the domain of this one is Boost Config and, AFAICT,
> it doesn't test the macros themselves.
>
> As I'm looking to finish of this lib for eventual submission I'm looking for
> ideas on this.
You could perhaps use Boost.Wave to preprocess the files in various
ways so you can test the configurations? Or use Clang if you feel
particularity adventurous.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk