Using template typetuples?

Sean Eskapp eatingstaples at gmail.com
Wed Jan 12 12:58:13 PST 2011


That looks like it.. only, it's not working:

void main()
{
	TypeTuple!(int, int) foo;
	foo[0] = 1;
	foo[1] = 2;

	double MakeStuff(in int bar)
	{
		return cast(double)bar;
	}

	auto foobar = staticMap!(MakeStuff)(foo);
}

This fails compilation with the error "Error: function expected before (), not ()
of type ()"


More information about the Digitalmars-d-learn mailing list