On Tue, 20 Jan 2009 12:30:27 -0500, "Jarrett Billingsley" <[email protected]> wrote:
>On Tue, Jan 20, 2009 at 12:21 PM, Max Samukha ><[email protected]> wrote: >> >> BTW, is there a way to alias a function template instantiation? >> > >A full instantiation can be. > >alias Foo!(Bar, Baz) FooBarBaz; > >A partial instantiation can't be, but you can do it using a proxy template. > >template FooBar(U) >{ > alias Foo!(Bar, U) FooBar; >} Thanks. My confusion came from 'to' being declared as template to(Source) { Target to(Target)(Target t); } instead of Target to(Source, Target)(Target t) { }
