Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-19 14:07:51


"Trenton Tuggle" <Tuggle_at_[hidden]> wrote in message
news:3CC05ECC.6030004_at_Acusoft.com...
> the problem is that virtual functions can't be templated! How can I
> call the specific PlaceHolder's accept, passing it the specific visitor,
> when you can't call a templated function virtually!

That is correct. MC++D explains why. The closest you can get is by using
acyclic visitation. This is because the only thing that behaves like a
template and a virtual function at the same time is dynamic_cast.

Andrei


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk