Template questions
Edward Diener
eddielee_no_spam_here at tropicsoft.com
Sat Mar 22 19:59:57 PDT 2008
Frank Benoit wrote:
> Edward Diener schrieb:
>> Please explain the rules for this "shorthand". I can not find them in
>> the PDF documenatation.
>
> http://www.digitalmars.com/d/1.0/template.html
> See Class Template and ff.
> "If a template declares exactly one member, and that member is a class
> with the same name as the template:"
Thanks !I saw the example incorrectly. The example I gave had:
struct TFoo(int x) { }
and somehow I saw this as:
struct TFoo { int x; }
That is definitely my error.
More information about the Digitalmars-d
mailing list