Boost logo

Boost Users :

From: Igor R. (igor_rubinov_at_[hidden])
Date: 2008-04-30 10:28:30


Hello,
 
I've got a class template that one of its members is boost::variant:
 
template<?> class MyClass
{
  boost::variant</*bounded types*/> var_;
};
 
 
 At the stage of MyClass instantiation, I'd like to specify variant' bounded types list - which is variable. What's the most simple way to do this? Can I use mpl::list somehow - both as MyClass template parameter and in the variant specialization?
 
Thank you.
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE



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