Maybe an easier option would be for the checker to ignore std headers if there's a comment next to the include line as under:<br><br>#include<vtkstd/vector> // STL include<br><br>This will ensure that the developer has give at least a moment's pause for the include and knows what he's doing (at least on a very good day).<br>
<br>Utkarsh<br><br><div class="gmail_quote">On Mon, Jun 8, 2009 at 8:39 AM, Dave Partyka <span dir="ltr"><<a href="mailto:dave.partyka@kitware.com">dave.partyka@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Good point.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Jun 6, 2009 at 1:28 PM, Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com" target="_blank">mathieu.malaterre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Fri, Jun 5, 2009 at 10:42 PM, Dave Partyka<<a href="mailto:dave.partyka@kitware.com" target="_blank">dave.partyka@kitware.com</a>> wrote:<br>
> Hi everyone,<br>
> A new CVS commit check has been added to prevent commits of VTK header files<br>
> that contain STL includes. Exceptions can be added by contacting myself or<br>
> Brad King.<br>
> I also want to give a friendly reminder that the VTK coding standards (VTK<br>
> has coding standards???) provide guidelines for using STL in VTK and require<br>
> that STL not be used in header files. See the following for more information<br>
> or feel free to ask me if you have any questions.<br>
> VTK Coding Standards:<br>
> <a href="http://www.vtk.org/Wiki/VTK_Coding_Standards" target="_blank">http://www.vtk.org/Wiki/VTK_Coding_Standards</a><br>
> VTK FAQ regarding STL<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ#Can_I_use_STL_with_VTK.3F" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ#Can_I_use_STL_with_VTK.3F</a><br>
<br>
</div>As a side note, I think this FAQ is completely obsolete. At least it<br>
does not reflect current VTK CVS, since the integration of kwsys,<br>
where now it is recommended to do:<br>
<br>
#include <vtksys/ios/sstream><br>
<br>
instead of<br>
<br>
#include <vtkstd/sstream><br>
<br>
kwsys provide -among other things- a fallback implementation for *stringstream.<br>
<br>
Ref:<br>
$ grep -r vtksys * | grep "/ios\|/stl" | wc<br>
330 716 21935<br>
<br>
2cts<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>