Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-10-17 07:39:53


Michael Stevens <michael_at_[hidden]> writes:

> Thanks to David and Craig for the feedback,
>
> At present (for MSVC) STATIC_ASSERT uses the typedef mechanism. This
> fails with template paramter compile time constant. However the
> alternative enum mechanism DOES work. Iterestingly at present the enum
> mechanism is explictly not used for MSVC. This is due to a quoted
> problem with __LINE__ and /Zi. VC7 (not VC6) supplies the rather
> useful __COUNTER__ alternative, which does work. With this in mind I
> propose the following patch:

Looks OK mostly, but you should only use a special version for VC7,
not VC7.1 (BOOST_MSVC == 1301).

-- 
                    David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Building C/C++ Extensions for Python: Dec 9-11, Austin, TX
http://www.enthought.com/training/building_extensions.html

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