On 12/19/18 11:26 AM, Greg Troxel wrote: > Paul Ramsey <pram...@cleverelephant.ca> writes: > >> "non standard but widely supported" >> >> https://en.wikipedia.org/wiki/Pragma_once >> >> Includes MSVC! :) > As much as I hate to depart from standards, that does look near > universal.
Go for #pragma once. We haven't regretted it in PDAL for the nearly eight years we've existed. It cleans up tons of #ifdef churn and culls a set of difficult-to-debug situations (same ifdef being used from copypasta code). You have probably clipped off every compiler that doesn't support #pragma once with the C++11 requirement anyway... Howard
signature.asc
Description: OpenPGP digital signature
_______________________________________________ geos-devel mailing list geos-devel@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/geos-devel