Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2002-04-10 09:33:02


[To moderator: sorry for numerous copies of my reply. I had some troubles
with news reader.]

"Andrei Alexandrescu" <andrewalex_at_[hidden]> wrote in message
news:a90prv$j2f$1_at_main.gmane.org...
> I'd like to propose making 'any' visitable. Without visitation, all
> you can do to query the type of any is to do it explicitly, which is
> awkward and error-prone.
>
> With visitation, one can add processing to any that is nicely
> decoupled. (By the way, due to the nature of 'any', it seems like only
> acyclic visitation will do - the classic GoF visitor won't work.)
>
> So, in a nutshell - do you guys think it's a good idea?
>

I already posted something sililar to boost:
http://lists.boost.org/MailArchives/boost/msg27859.php

------------
Alexander


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