Boost logo

Boost Users :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2006-11-24 15:40:10


I would have liked to wrap boost.variant<Base, Derived1, Derived2 ..
DerivedN> into a smart reference that would act like a reference to Base.

Unfortunetely, the variadic template nature makes this extremely
complicated, especially since there are a lot of conversions cases to
handle too (<Base, Derived1..DerivedN> should be convertible to
<BaseOfBase, Base, Derived1..DerivedN>).

Is there any way to code that kind of thing easily?


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