Subject: Re: [boost] Request For a feature - Templated virtual functions
From: Gokulakannan Somasundaram (gokul007_at_[hidden])
Date: 2009-02-14 00:44:08
On Fri, Feb 13, 2009 at 4:19 PM, Mathias Gaunard <
> Gokulakannan Somasundaram wrote:
> I got even better results for switch with Visual Studio, but on Linux gcc
>> 4.3.2, i am getting almost equal values for both. But we can say for sure
>> that Boost Variant is not as fast as the direct function call. . That's
>> i am requesting a feature to allow limited functionality of templates
>> inside the virtual functions.
> Well you can't do dynamic dispatch any faster than with a switch.
> Ok! i think i am not able to put forward my point. My request is to replace
switch / dynamic dispatch with a compile time optimization with templates.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk