[Insight-developers] KWStyle & Namespace name complaints?

Williams, Norman K norman-k-williams at uiowa.edu
Fri Apr 1 11:40:21 EDT 2011


Yesterday, I added this forward declaration to my (WIP) HDF5ImageIO header

namespace H5
{
  class H5File;
}

To which KWStyle says "INCORRECT NAMESPACE NAME!!!" (paraphrased, caps &
exclamation points mine)

Which is distressing.  That particular declaration inside a namespace
allows me to define a pointer to H5::H5File in the header without
including H5Cpp.h.

So far, I'm just ignoring KWStyle's objections. But if I read
ITK.kws.xml.in correctly, the ONLY namespace name allowed ANYWHERE in ITK
is itk.

There are other cases -- private helper functions in CXX files come to
mind -- where using a named namespace would make   the code easier to
understand.




________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list