From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-11-28 09:26:55
At 10:58 AM 11/27/2003, Peter Dimov wrote:
>Beman Dawes wrote:
>> Is this something we want to try to fix this release? There is
>> possibly suspect _MSC_VER use in the Boost headers listed below.
> #if defined(_MSC_VER) && (_MSC_VER >= 1020)
> # pragma once
>which is intentional. As a general rule, compilers that expose _MSC_VER
>support "#pragma once".
That's why I made the point in the original posting about comments
indicating intent. It would be a lot easier if the above had said something
#if defined(_MSC_VER) && (_MSC_VER >= 1020) // MS & compatible
# pragma once
The BOOST_XXX macro approach seems preferable if it really is a commonplace
usage (and thus something other compilers may add, perhaps with different
spelling). Also would work well if Borland initially doesn't support
#pragma once with their new compiler and then later does support it.
But even just adding a comment makes clear to a "grep" that the case of
compatible compilers was considered.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk