Boost logo

Boost Users :

From: peter_foelsche_at_[hidden]
Date: 2008-08-08 18:39:20


nope -- shared_ptr is not necessary -- auto_ptr would suffice:

#include <boost/variant.hpp>
#include <vector>
#include <memory>

struct CSkillType:boost::variant<int, double, char, std::string, std::auto_ptr<std::vector<struct CSkillType> > >
{
};


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