A
alessio211734
I am trying to port my code on mingw compiler.Until now I use visual
studio compiler. I get some problem with template:
for example this template function call give my an error:
error: parse error in template argument list
error: no matching function for call to
'vcg::Add_Ons::glArrow(vcg:oint3f&, vcg:oint3f&, float&, float&,
float&, int&, int&, bool&)'
********** this is my code: *****************
Point3f tail;
Point3f head;
float body_width=0;
float head_width=0;
float head_lenght=0;
int body_slice=10;
int head_slice=10;
bool useDisplList=true;
/********************* template function call that generate the
error!!!!!! *****************************/
Add_Ons::glArrow<Add_Ons:rawMode:MSolid>(tail, head, body_width,
head_lenght,
head_width, body_slice, head_slice,
useDisplList);
************ template definition ********************
namespace vcg
{
....
class Add_Ons
{
public:
enum DrawMode {DMUser,DMWire,DMSolid} ;
....
template <DrawMode dm>
static void glArrow(Point3f tail, Point3f head,float
body_width,float head_lenght,
float head_width,int body_slice=10,int head_slice=10,bool
useDisplList=true)
{
....
}
}
}
Thanks in advance.
studio compiler. I get some problem with template:
for example this template function call give my an error:
error: parse error in template argument list
error: no matching function for call to
'vcg::Add_Ons::glArrow(vcg:oint3f&, vcg:oint3f&, float&, float&,
float&, int&, int&, bool&)'
********** this is my code: *****************
Point3f tail;
Point3f head;
float body_width=0;
float head_width=0;
float head_lenght=0;
int body_slice=10;
int head_slice=10;
bool useDisplList=true;
/********************* template function call that generate the
error!!!!!! *****************************/
Add_Ons::glArrow<Add_Ons:rawMode:MSolid>(tail, head, body_width,
head_lenght,
head_width, body_slice, head_slice,
useDisplList);
************ template definition ********************
namespace vcg
{
....
class Add_Ons
{
public:
enum DrawMode {DMUser,DMWire,DMSolid} ;
....
template <DrawMode dm>
static void glArrow(Point3f tail, Point3f head,float
body_width,float head_lenght,
float head_width,int body_slice=10,int head_slice=10,bool
useDisplList=true)
{
....
}
}
}
Thanks in advance.