Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-12-23 21:53:52


"Christopher Kohlhoff" <chris_at_[hidden]> wrote in message
news:20051223091739.62019.qmail_at_web32605.mail.mud.yahoo.com...

>> How do you expect to write tests for your library that cover
>> *all* the various methods supported in one platform?
>
> By doing what Caleb Epstein suggested and having a different
> macro passed when building each set of tests.
>
> I note that this is how Boost.Threads, for example,
> differentiates between the native Windows threads and pthreads
> variants.

It is also how Boost.Filesystem chooses between Windows and POSIX variants
on platforms (Cygwin) that support both.

--Beman


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