user defined implicit casts

Tristam MacDonald swiftcoder at gmail.com
Wed Aug 1 12:06:45 PDT 2007


The problem being that I can figure otu quite *what* C++ will do in a specialisation. Sometimes the specialisation will correctly inherit all the original members and sometimes not, sometimes I can replace members and sometimes not, so most of the time I must completely re-write the entire template for each specialisation (as stdc++ does in most cases).

Ender KaShae Wrote:
> Tristam MacDonald Wrote:
> > It would be nice if this could be generalised to functions, rather than just operator overloads. Then we could define member functions for specific template instantiations without having to specialise the whole template, or clog the body with static ifs.
> > 
> it actually suprised me that D doesn't allow specialised templates the way c++ does




More information about the Digitalmars-d mailing list