<HTML dir=ltr><HEAD><TITLE>[Liblas-devel] #pragma once</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText26973>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Just one objection -- it's not "standard".<BR>&nbsp;<BR> <A href="https://owa1.ngc.com/exchweb/bin/redir.asp?URL=http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Windows_Code%23Windows_Code" target=_blank>http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Windows_Code#Windows_Code</A><BR>&nbsp;<BR> If you intend to restrict your code to only compatible compilers, then fine.&nbsp; The other recommendations I saw said to use both #ifdef and #pragma once -- then you get both.&nbsp; But if maximum portability is not your concern.....<BR>&nbsp;<BR> Looks like it's still in the throws of being implemented -- and without it being a standard it seems risky...<BR>&nbsp;<A href="http://software.intel.com/en-us/articles/cdiag1782/" target=_blank>http://software.intel.com/en-us/articles/cdiag1782/</A><BR></FONT></DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>If it ain't broke -- don't fix it...&nbsp;<BR></DIV></FONT>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr id=idSignature74086>
<DIV><FONT color=#000000 size=2 face=Arial>Michael D. Black</FONT></DIV>
<DIV><FONT size=2 face=Arial>Senior Scientist</FONT></DIV>
<DIV><FONT size=2 face=Arial>Northrop Grumman Mission Systems</FONT></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> liblas-devel-bounces@lists.osgeo.org on behalf of Howard Butler<BR><B>Sent:</B> Mon 2/8/2010 9:06 AM<BR><B>To:</B> Liblas-devel@lists.osgeo.org<BR><B>Subject:</B> [Liblas-devel] #pragma once<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>All,<BR><BR>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.&nbsp; 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.<BR><BR>Any objections?<BR><BR>Howard<BR><BR>[1] <A href="http://en.wikipedia.org/wiki/Pragma_once_______________________________________________">http://en.wikipedia.org/wiki/Pragma_once_______________________________________________</A><BR>Liblas-devel mailing list<BR>Liblas-devel@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/liblas-devel">http://lists.osgeo.org/mailman/listinfo/liblas-devel</A><BR></FONT></P></DIV></BODY></HTML>