[Insight-developers] VS6 compiles and passes all tests

Sean McBride sean at rogue-research.com
Mon May 25 13:24:58 EDT 2009


On 5/25/09 1:21 PM, Bill Lorensen said:

>Hmmm... with your example, I got the error.
>
>Now I see the difference. In itkSampleTest2.cxx, the m_Values.clear()
>is void, so the function is actually returning "void". I don't know if
>that is correct c++?
>
>  virtual void Clear()
>    {
>    return m_Values.clear();
>    }

Ahh, I see.  Alas, I don't know C++ well enough to say.  However, from a
readability pov I dislike the return in this usage.  It may however be
conformant, I dunno.  Any language lawyers here? :)

At least the mystery is cleared up.

Cheers,

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




More information about the Insight-developers mailing list