Boost logo

Boost Users :

From: Cory Nelson (phrosty_at_[hidden])
Date: 2007-07-06 13:44:58


Hello,

Using 1.34.0 and 1.34.1 RC, this used to work with 2005 but with SP1
it is now broken:

boost::make_recursive_variant<
   int,
   std::pair<int, boost::recursive_variant_>
>::type foo;

It now gives the error:

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

I was able to fix this by #defining
BOOST_VARIANT_NO_FULL_RECURSIVE_VARIANT_SUPPORT before including
variant.hpp.

- Cory


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