[Issue 2245] Bug with overloaded, mixin template functions in classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 25 06:16:01 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2245
brunodomedeiros+bugz at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Possible bug with mixin |Bug with overloaded, mixin
|template functions and |template functions in
|variadic params |classes
------- Comment #1 from brunodomedeiros+bugz at gmail.com 2008-08-25 08:15 -------
This is not related to template variadic params. If you substitute:
3 template TCALL(ARGS...)
4 {
5 void makecall(ARGS args)
6 {
7 writefln("tcall...", args);
8 }
9 }
with the 3 expansions:
template TCALL()
{
void makecall()
{
writefln("tcall...");
}
}
template TCALL(T1)
{
void makecall(T1 a1)
{
writefln("tcall...", a1);
}
}
template TCALL(T1, T2)
{
void makecall(T1 a1, T2 a2)
{
writefln("tcall...", a1, a2);
}
}
you still get the same error. It rather seems more like a overload+mixin issue.
--
More information about the Digitalmars-d-bugs
mailing list