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, kalb at, bjorn.karlsson at, gregod at, wekempf at