Boost logo

Boost :

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

"Trenton Tuggle" <Tuggle_at_[hidden]> wrote in message
> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at