Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2003-02-19 06:08:46


Alisdair Meredith wrote:

> [Note: I am now using a proposed new defect-detection macro,
> BOOST_NO_STATIC_CONST_AS_TEMPLATE_PARAM, currently only defined for
> borland <=0x0570]

Did you try to define BOOST_NO_INCLASS_MEMBER_INITIALIZATION for
borland? This will toggle BOOST_STATIC_CONSTANT to use the enum
workaround and might fix most of the problems you are having with BCC
not allowing static constant members as integral constant expressions
in template parameters.

This trick is used in the Visual Age toolset.

Markus


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