Boost logo

Boost :

From: Oscar Fuentes (ofv_at_[hidden])
Date: 2002-04-23 21:31:35


"Peter Dimov" <pdimov_at_[hidden]> writes:

> From: "Peter Dimov" <pdimov_at_[hidden]>
> > From: "Giovanni Bajo" <giovannibajo_at_[hidden]>
> [...]
> > If this doesn't help you can use a custom configuration file. You're right
> > that we can't patch comeau.hpp since there is apparently no way to detect
> > whether void returns are supported or not.
>
> Actually there is. _MSC_VER is 1 in strict mode, and 1200 in Microsoft mode.
> I've modified comeau.hpp appropriately.

Which Comeau version are you using? My tests indicate that _MSC_VER is
defined only in MS mode. Using either --strict or --no_microsoft
does not define it.

Tried with several combinations on the on-line compiler and my own
4.2.45.2c BETA#8.

So maybe an #if ! defined(_MSC_VER) is the appropriate test for
knowing if we are _not_ in MS mode (not neccesarily strict mode).

-- 
Oscar

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