[Insight-developers] Mysterious "was hidden" warning

Mathieu Coursolle mcoursolle at rogue-research.com
Thu Aug 23 12:02:13 EDT 2007


Hi ITK developpers,

I am currently investigating on a repetitive warning we have on our dashboard:

<http://www.itk.org/Testing/Sites/RogueResearch2/MacOSXTiger-univ/
20070823-0100-Nightly/BuildWarning.html>

Warning:

/.../Insight/Code/Common/itkLeafTreeIterator.h: In instantiation of
'itk::LeafTreeIterator<main(int, char**)::TreeType>':
/.../Insight/Examples/DataRepresentation/Containers/TreeContainer.cxx:
159:   instantiated from here
/.../Insight/Code/Common/itkTreeIteratorBase.h:167: warning:
'itk::TreeIteratorBase<TTreeType>& it
k::TreeIteratorBase<TTreeType>::opera
tor=(itk::TreeIteratorBase<TTreeType>&) [with TTreeType =
itk::TreeContainer<main::NodeType>]' was hidden

It comes from the = operator of itkTreeIteratorBase.h.

From what I understand, the "was hidden" warning appears when a virtual
function is not properly overwritten,
and is instead overloaded.

However, I can't find any reimplementation of the = operator in its
subclasses, nor any redefinition of the Self paramter.

If that operator is not virtual, there is no confusion between
overwritten and overloaded, so the warning
disappears.

Questions:

1) Does this operator needs to be virtual?

2) Anyone knows why this warning appears?


Thank you!

Mathieu

-- 
____________________________________________________________
Mathieu Coursolle                   mcoursolle at rogue-research.com
Rogue Research                      www.rogue-research.com 
Montréal, Québec, Canada



More information about the Insight-developers mailing list