Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-04-24 11:09:33


"Itay Maman" <itay_maman_at_[hidden]> wrote in message
news:aa6cii$g1u$1_at_main.gmane.org...
> A couple of days ago, I made a post regarding a generic visitor
called
> Power_visitor, which is basically a static (i.e: compile time based)
> visitor.
[snip]
> typedef vany<t_visitor> t_any;

The fact that you must parameterize the visited class with the visitor
class is a disadvantage. Visitor's main purpose is to add new
processing to types without changing the types themselves. If you must
parameterize those types with the type of the visitor, then that
requirement is not satisfied anymore.

Andrei


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