[Issue 6613] Can't use empty tuple as default value for variadic template function parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 8 18:01:44 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6613
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com,
| |k.hara.pg at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-08 18:01:40 PST ---
[internal note]: It seems Tuple!() is treated as a type when it's a default
argument (at least ExpInitializer::semantic seems to think so). But as a
variable initializer it works ok:
template Tuple(T...) { alias T Tuple; }
void main()
{
Tuple!() t = Tuple!();
}
CC'ing Kenji since he might be interested in this bug.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list