Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 2002-02-04 15:14:20


On 2/4/02 12:12 PM, "Darin Adler" <darin_at_[hidden]> wrote:

> Peter's cut at a Boost assert header is in <boost/assert.hpp> in cvs.
>
> My cut at a Boost assert is this:
>
> #ifdef BOOST_ASSERT_CUSTOMIZATION_HEADER
> #include BOOST_ASSERT_CUSTOMIZATION_HEADER
> #endif
>
> #ifndef BOOST_ASSERT
> #include <assert.h>
> #define BOOST_ASSERT assert(x)
> #endif

I meant to say:

    #ifdef BOOST_ASSERT_CUSTOMIZATION_HEADER
    #include BOOST_ASSERT_CUSTOMIZATION_HEADER
    #endif

    #ifndef BOOST_ASSERT
    #include <assert.h>
    #define BOOST_ASSERT(expr) assert(expr)
    #endif

Hope that's clearer.

    -- Darin


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