$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] virtual function templates
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-02-20 08:33:36
strasser_at_[hidden] wrote:
> real virtual function templates are obviously not possible without a
> JIT-compiler
Wrong, you would just need to do link-time template instantiation, which
is actually required by the C++ standard (but few implement it, and none
had the idea to use it to implement virtual template functions as an
extension).
> but if all derived types are known to the base type,
Then you might as well use Boost.Variant.
> the runtime overhead besides the virtual call is one switch().
It should be possible to be just a switch and no virtual call.