Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-09-17 06:57:00


Pavel Vozenilek wrote:
> Hello Thorsten,
>
> I looked briefly on your library and have few notes (bellow).
>
> /Pavel
> _______________________________________________________________
> 1. Can you add
>
> #if _MSC_VER >= 1200
> # pragma once
> #endif
>
> to the assign.hpp and others? This is helpful for MSVC and Intel C++.

The correct version is, I believe,

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif

Without the defined() test g++ emits warnings with -Wundef. Most of Boost
doesn't care about -Wundef, but perhaps we should, as users do find it
helpful.


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