About variant
bioinfornatics via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Jan 27 13:55:37 PST 2015
On Tuesday, 27 January 2015 at 21:00:16 UTC, Justin Whear wrote:
> On Tue, 27 Jan 2015 20:46:59 +0000, bioinfornatics wrote:
>
>> void main(){
>> auto a = Alpha!(int)( 6);
>> auto b = Alpha!(string)( "hello");
>
> The Alpha struct is not a template, only the constructor is.
> Remove the
> explicit instantiations and IFTI does the work:
>> void main(){
>> auto a = Alpha( 6);
>> auto b = Alpha( "hello");
Oh really cool
More information about the Digitalmars-d-learn
mailing list