[Issue 8833] New: Odd error with expression tuples
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 16 20:13:02 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8833
Summary: Odd error with expression tuples
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-16 20:12:56 PDT ---
import std.typetuple;
void func(alias arg)() { }
void main()
{
int x, y;
alias TypeTuple!(
func!(x),
func!(y),
) Map;
}
test.d(9): Error: template instance TypeTuple!(func,func) TypeTuple!(func,func)
is nested in both func!(x) and func!(y)
But this works fine (notice 'y' isn't passed here):
void main()
{
int x, y;
alias TypeTuple!(
func!(x),
func!(x),
) Map;
}
This was while trying to implement an interesting question on SO:
http://stackoverflow.com/questions/12888263/mapping-variadic-template-arguments-in-d
That solution is partially implementable by constructing function call
expressions, however I can never get around this strange 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