Is the template method non virtual?
BCS
ao at pathlink.com
Wed Jul 16 14:32:55 PDT 2008
Reply to Jarrett,
> There is no way to have a virtual templated method. It would not be
> possible to implement, since there can be any number of instantiations
> of the method.
>
It would not be possible to implement *with current linkers*
I can think of some horrid hack's involving using relocations for vtbl offsets
and generating object files by parsing link errors (or with a hacked linker)
that would let it be done.
OTOH it would break with .so/.dll usage and would generate some really funky
build processes.
More information about the Digitalmars-d-learn
mailing list