[Insight-developers] ITK convention between #include "" and #include <>

Iván Macía imacia at vicomtech.org
Wed Jun 23 06:17:34 EDT 2010


Hi Sean,

 

There seems to be a mix in the includes between the #include <> and #include
“” for the vxl library headers. vxl uses internally the <> convention. With
respect to ITK headers strictly, always “” is used. As Karthik says in
general better use “” always, although with VXL headers it is a bit unclear.

 

This is what MS says about both forms, don’t know if the same applies for
other platforms

http://msdn.microsoft.com/en-us/library/36k2cdd4%28VS.71%29.aspx

 

Best regards

 

Iván

 

De: insight-developers-bounces at itk.org
[mailto:insight-developers-bounces at itk.org] En nombre de Karthik Krishnan
Enviado el: miércoles, 23 de junio de 2010 8:38
Para: Sean McBride
CC: ITK
Asunto: Re: [Insight-developers] ITK convention between #include "" and
#include <>

 

In general its, <> for system includes (STL etc) and " for the others.

On Wed, Jun 23, 2010 at 3:18 AM, Sean McBride <sean at rogue-research.com>
wrote:

Hi all,

Does ITK have a convention for using #include "" vs #include <> ?

For example in itkMatrix.h:
<http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMatrix.h?
<http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkMatrix.h?%0Aro
ot=Insight&view=markup> 
root=Insight&view=markup>

Why does it do both:

#include "vnl/algo/vnl_matrix_inverse.h"

and

#include <vnl/algo/vnl_determinant.h>

Is this a bug or feature?

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-developers

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100623/68a4c600/attachment.htm>


More information about the Insight-developers mailing list