Wrapping variant into a smart reference

24 Nov
2006
24 Nov
'06
1:40 p.m.
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?
6782
Age (days ago)
6782
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mathias Gaunard