Boost logo

Boost Users :

From: Igor R (boost.lists_at_[hidden])
Date: 2008-06-22 18:50:19


> if you know the set of types you operate on consider using
> boost::variant which supports visitor pattern for dispatching of
> currently stored type.

Besides, if I'm not mistaken, there already exists operator << for
boost::variant (which internally performs the visiting)...


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