7 Nov
2008
7 Nov
'08
2:35 a.m.
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.