[geos-devel] pragma once

Paul Ramsey pramsey at cleverelephant.ca
Wed Dec 19 08:11:23 PST 2018


"non standard but widely supported"

https://en.wikipedia.org/wiki/Pragma_once

Includes MSVC! :)

P

On Wed, Dec 19, 2018 at 7:01 AM Greg Troxel <gdt at lexort.com> wrote:

> Paul Ramsey <pramsey at cleverelephant.ca> writes:
>
> > As I fart around w/ header guards every time I add a new header/class,
> > I wonder if changing over to #pragma once would be OK with one and
> > all? GCC has had it 3.4, and clang has always had it, so…?
>
> Is that covered by any standards?
>
> (Presumably there is some other compiler people use on windows, too.)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20181219/aa14f733/attachment.html>


More information about the geos-devel mailing list