[Insight-developers] VS6 compiles and passes all tests

Bill Lorensen bill.lorensen at gmail.com
Mon May 25 13:21:05 EDT 2009


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();
    }

On Mon, May 25, 2009 at 12:17 PM, Sean McBride <sean at rogue-research.com> wrote:
> On 5/25/09 12:02 PM, Bill Lorensen said:
>
>>My gcc 4.3 did not show the error.
>
> Even with the little example case I posted?  Did you try adding -Wall?
>
> --
> ____________________________________________________________
> 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