- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
icc V 8.0 (icc -ansi -o foo tempfunc.cpp) with -ansi produces
the following error msg:
tempfunc.cpp(34): error: no instance of function template "foofunction" matches the argument list
argument types are: (foo , int )
foofunction(lhs,tag);
^
detected during instantiation of "void assign(foo &far, int) [with T1=double, D1=3U]"
When compiling:
template
class foo {
public:
foo() {}
~foo() {}
};
template
static void foofunction(foo& lhs, int tag)
{ }
template
static void assign(foo& lhs, int tag)
{
foofunction(lhs,tag);
}
int main() {
foo foo1;
assign(foo1,12);
assign(foo1,12);
}
g++ 3.4 has no problem with the code !
Any idea, thanks, Andreas
icc V 8.0 (icc -ansi -o foo tempfunc.cpp) with -ansi produces
the following error msg:
tempfunc.cpp(34): error: no instance of function template "foofunction" matches the argument list
argument types are: (foo , int )
foofunction(lhs,tag);
^
detected during instantiation of "void assign(foo &far, int) [with T1=double, D1=3U]"
When compiling:
template
class foo {
public:
foo() {}
~foo() {}
};
template
static void foofunction(foo& lhs, int tag)
{ }
template
static void assign(foo& lhs, int tag)
{
foofunction(lhs,tag);
}
int main() {
foo foo1;
assign(foo1,12);
assign(foo1,12);
}
g++ 3.4 has no problem with the code !
Any idea, thanks, Andreas
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page