<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have come across a weird problem when compiling
test programs. I have minimized the problematic code.</FONT></DIV>
<DIV><FONT face=Arial size=2>The following code does not compile:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT color=#0000ff size=2>
<P>#include</FONT><FONT size=2> <itkMesh.h></P></FONT><FONT color=#0000ff
size=2>
<P>#include</FONT><FONT size=2> "itkBalloonForceFilter.h"</P></FONT><FONT
color=#0000ff size=2>
<P>int</FONT><FONT size=2> main()</P>
<P>{</P>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2>
itk::Mesh<</FONT><FONT color=#0000ff size=2>double</FONT><FONT size=2>, 3,
itk::DefaultStaticMeshTraits< </FONT><FONT color=#0000ff
size=2>double</FONT><FONT size=2>, 3, 3, </FONT><FONT color=#0000ff
size=2>double</FONT><FONT size=2>, </FONT><FONT color=#0000ff
size=2>double</FONT><FONT size=2>, </FONT><FONT color=#0000ff
size=2>double</FONT><FONT size=2> > > MeshType; </P>
<P></FONT><FONT color=#0000ff size=2>typedef</FONT><FONT size=2>
itk::BalloonForceFilter<MeshType, MeshType> FilterType; </P>
<P>FilterType::Pointer f = FilterType::New();</P>
<P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> 0;</P>
<P>}</P>
<P><FONT face=Arial></FONT> </P>
<P><FONT face=Arial>among other it reports cast problems in the file
</FONT><FONT face="Times New Roman">itkBalloonForceFilter.h </FONT><FONT
face=Arial>itself.</FONT></P>
<P><FONT face=Arial>When changing fourth template parameter of
DefaultStaticMeshTraits to its default value (float), everything
compiles.</FONT></P>
<P><FONT face=Arial>I will appreciate any help. </FONT></P>
<P><FONT face=Arial>By the way, was not the concept of generic programming
with templates invented to avoid such troubles?</FONT></P>
<P><FONT face=Arial></FONT> </P>
<P><FONT face=Arial>thx,</FONT></P>
<P><FONT face=Arial>Pavel</FONT></P></FONT></DIV></BODY></HTML>