boost::variant - limit on the number of types

29 Sep
2007
29 Sep
'07
6:42 a.m.
Hi there, I am using MSVC 8.0 and Boost 1.34.0 . I am trying to create a variant that can hold an object of one of 50 different classes but it has not worked. I keep getting a compile error indicating that the template contains too many arguments. I have played with preprocessor variables like BOOST_MPL_LIMIT_LIST_SIZE, BOOST_VARIANT_LIMIT_TYPES, and BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS w/o success. I have also attempted to use boost::make_variant_over<
but it doesn't work past the type #20. Has anyone been able to do something similar?
Thanks Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca
6356
Age (days ago)
6356
Last active (days ago)
0 comments
1 participants
participants (1)
-
Aaron Rocha