
Hello, I can't get the attached example to compile, using MS VC 8.0 and boost_1_35_0, when I uncomment the comment lines in the code. Can some one help me in finding what's wrong? A brief description: The code contains a class that has a variant as a member and a visitor that creates types of the variant. Thanks in advance

AMDG Naveen Santhanam wrote:
Hello,
I can't get the attached example to compile, using MS VC 8.0 and boost_1_35_0, when I uncomment the comment lines in the code. Can some one help me in finding what's wrong?
The problem is that you don't dereference the iterator in circ_sequence.
Try this
typedef typename bm::if_<
boost::is_same<
next_type_temp, end >,
typename
bm::deref

Thanks a lot. -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: Wednesday, March 04, 2009 9:21 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [boost::mpl][boost::variant] AMDG Naveen Santhanam wrote:
Hello,
I can't get the attached example to compile, using MS VC 8.0 and boost_1_35_0, when I uncomment the comment lines in the code. Can some one help me in finding what's wrong?
The problem is that you don't dereference the iterator in circ_sequence.
Try this
typedef typename bm::if_<
boost::is_same<
next_type_temp, end >,
typename
bm::deref
participants (2)
-
Naveen Santhanam
-
Steven Watanabe