Boost logo

Boost Users :

Subject: Re: [Boost-users] Visitor Pattern Implementation
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2008-11-06 21:35:02

On Thursday 06 November 2008 17:23, Rodrigo Madera wrote:
> Dear community,
> Is there any implementation/helper/inspiration/or-alike in Boost for the
> Visitor Pattern?
> I know of Boost Signals, which is awesome, but (as stated in the FAQ)
> it's not Thread-safe (yikes!).

Do you mean the Observer pattern, or are you just talking about
boost::visit_each? I'm not aware of anything about visit_each that makes
it inherently unusable in a multi-threaded program. Boost.Variant uses
visitors. You could look at the BGL too, which also uses visitors.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at