Boost logo

Boost :

Subject: Re: [boost] Arbitrary precision arithmetic
From: DE (satan66613_at_[hidden])
Date: 2009-08-19 16:43:26


on 20.08.2009 at 0:37
 joel wrote :
> What about :
> #ifdef NDEBUG
> #define GMP_MODE gmp
> #elif
> #define GMP_MODE classic
> #endif
> then in other unit :
> bignum<GMP_MODE> x,y;

or type everywhere

    typedef bignum<IMPL> mybignum;

and then

    #define IMPL
or
    #define IMPL specific_impl

(or set it in project options separately for release and debug version)
but this is a hack
it shouldn't be like that

-- 
Pavel

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