Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-08 18:49:47


AMDG

peter_foelsche_at_[hidden] wrote:
> I'm trying to create a type of argument which can occur in the language skill. What do you think? Any other suggestions?
>
>
> #include <boost/variant.hpp>
> #include <vector>
> #include <boost/shared_ptr.hpp>
>
>
> struct CSkillType:boost::variant<int, double, char, std::string, boost::shared_ptr<std::vector<struct CSkillType> > >
> {
> };
>

http://www.boost.org/doc/libs/1_35_0/doc/html/variant/tutorial.html#variant.tutorial.recursive.recursive-variant

In Christ,
Steven Watanabe


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