Visitor Pattern Implementation
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!). Thank you for your kind input, Rodrigo
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.
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.
I mean Visitor Pattern, by means of boost::visit_each. Thank you for you input!
participants (3)
-
Frank Mori Hess
-
Rodrigo Madera
-
Roman Perepelitsa