Boost logo

Boost Users :

From: Richard Crossley (rdc_at_[hidden])
Date: 2006-12-15 11:15:59


I would like to be able to use a recursive variant similar to the way it's
shown in the documentation but using a std::map instead of std::vector. i.e.

boost::make_recursive_variant<
        int,std::map<float,boost::recursive_variant_>
>::type var;

Is there a way to do this?

VC8.1 complains with:

utility(54) : error C2079: 'std::pair<_Ty1,_Ty2>::second' uses undefined
struct 'boost::recursive_variant_'
        with
        [
            _Ty1=const float,
            _Ty2=boost::recursive_variant_
        ]

Regards,

Richard.


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