[Insight-users] C2440 when reinterpret_cast-ing from base to specific class
itkvtk123 at gmx.net
itkvtk123 at gmx.net
Wed Dec 16 16:44:24 EST 2009
Thank you. Your code
reinterpret_cast<GradientDescentType*>(optimizer.GetPointer())->SetRelaxationFactor(0.5);
did the trick.
I knew that the pointer might be the reason, but I was not aware of the GetPointer() function.
--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
More information about the Insight-users
mailing list