[Liblas-devel] #pragma once
Black, Michael (IS)
Michael.Black2 at ngc.com
Mon Feb 8 11:52:23 EST 2010
Just one objection -- it's not "standard".
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Windows_Code#Windows_Code <https://owa1.ngc.com/exchweb/bin/redir.asp?URL=http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Windows_Code%23Windows_Code>
If you intend to restrict your code to only compatible compilers, then fine. The other recommendations I saw said to use both #ifdef and #pragma once -- then you get both. But if maximum portability is not your concern.....
Looks like it's still in the throws of being implemented -- and without it being a standard it seems risky...
http://software.intel.com/en-us/articles/cdiag1782/
If it ain't broke -- don't fix it...
Michael D. Black
Senior Scientist
Northrop Grumman Mission Systems
________________________________
From: liblas-devel-bounces at lists.osgeo.org on behalf of Howard Butler
Sent: Mon 2/8/2010 9:06 AM
To: Liblas-devel at lists.osgeo.org
Subject: [Liblas-devel] #pragma once
All,
I would like to remove our #ifdef-style include guards in all of our .hpp and .h files and instead use the "#pragma once" [1] compiler directive. I can't think of any compilers that people are using with libLAS that do not support this directive, and it will cut down on a lot of the boilerplate that exists in the headers.
Any objections?
Howard
[1] http://en.wikipedia.org/wiki/Pragma_once_______________________________________________
Liblas-devel mailing list
Liblas-devel at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/liblas-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20100208/43fdbede/attachment.html
More information about the Liblas-devel
mailing list