Boost logo

Boost Users :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2007-07-19 14:34:07


On 17/07/07, Rydinare <rydinare_at_[hidden]> wrote:
> Hi all. I was curious to see if there is or will be support for the use of
> the visitor pattern with boost::any? I think it would be very useful. I
> thought I had read that there was an experimental boost::any visitor at some
> point, but I couldn't find it.

It'd certainly take stronger template-foo than I have. The way I
understand it, classic visitor relies on knowing all the possible
types, which Boost.Any doesn't.

I suppose one could be written using map lookup, but that's more like
manually implementing runtime overloading than visitor.

~ Scott


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net