variant c2666, wrong constructor?

Description

VC Express 2012, 11.0.61030.00 Update 4

When I use variant<variant<A,B>,C> it's working, but with variant<deriver_from_other_variant,...> it's not. I think it's because of wrong variant constructor called (like we construct from variant<some types>, but not from just V1). Workaround for me is to use variant<class_that_has_V1_as_member_var,...>.

Add Comment

This ticket has been modified since you started editing. You should review the
other modifications which have been appended above,
and any conflicts shown in the preview below.
You can nevertheless proceed and submit your changes if you wish so.