opCast / operator overloading with additional template arguments

Ali Çehreli acehreli at yahoo.com
Mon Jan 11 02:44:50 UTC 2021


On 1/10/21 6:37 PM, Ali Çehreli wrote:

 >        // OBSERVATION: Should the cast below be S?
 >        converted.content[i] = cast(S2) content[i];

I take that back. Yes, it should be S2. (I've been off lately. :) )

Ali




More information about the Digitalmars-d-learn mailing list