Preserving const? -- A potential solution

Tim M a at b.com
Sat Mar 7 23:26:51 PST 2009


On Sun, 08 Mar 2009 20:12:20 +1300, Daniel Keep  
<daniel.keep.lists at gmail.com> wrote:

>
> One issue with this is that template functions can't be virtual.
>
> You can work around it, but it's really putting barriers up to easy use
> of the new const system, which I think is a bad thing.
>
>   -- Daniel

I'd rather have virtual template functions, even if it means I have to  
re-compile all subclasses when the vtbls get modified. Is there any  
technicality causing it to be impossible to implement or just something  
rather tricky?



More information about the Digitalmars-d mailing list