Function templates do implicit conversions for their arguments
Ali Çehreli
acehreli at yahoo.com
Tue Jul 2 12:07:51 PDT 2013
On 07/02/2013 11:46 AM, Jesse Phillips wrote:
> C++ doesn't have alias this. The behavior that it should be simulating
> is inheritance
But 'alias this' is also for automatic type conversions. TommiT's had
implemented 'operator Wrap<Teddy>() const' (const added by me) but C++
does not attempt that automatic type conversion. D does attempt the
conversion. I think that is TommiT's point.
Ali
More information about the Digitalmars-d
mailing list