
8 Aug
2008
8 Aug
'08
10:01 p.m.
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> > > { }; A method callable from skill (and provided in some DLL) would probably look like: CSkillType function_name(const CCppDataInterface &_rCPPData, const std::vector< CSkillType> &_rSkillArgs);