Boost logo

Boost :

Subject: [boost] [#pragma once]
From: Sid Sacek (ssacek_at_[hidden])
Date: 2009-04-10 10:26:05

I've worked with the MSVC, Sun and GCC compilers.


Each one of them supports #pragma once. Is there any reason to wrap
this pragma within #ifdefs? Are there any compilers out there today that
don't support this #pragma?


#if defined( _MSC_VER ) && ( _MSC_VER >= 1020 )

# pragma once



Could we change this coding pattern so that it no longer looks like MSVC
is being selfish?


-Sid Sacek


Boost list run by bdawes at, gregod at, cpdaniel at, john at