[fusion] Constructing a vector with non-default/non-copy constructor
class A {
public:
A(int i) : i(i) {};
private:
A();
A(const A&);
int i;
};
typedef boost::fusion::vector VecA;
boost::fusion::vector
AMDG Tilo Nitzsche wrote:
class A { public: A(int i) : i(i) {}; private: A(); A(const A&); int i; };
typedef boost::fusion::vector VecA; boost::fusion::vector
int_vec(1, 2); VecA v(int_vec); // doesn't compile, needs copy constructor I'm trying to construct a vector of classes that don't have either a default constructor or a copy constructor. Is that possible at all?
Not currently. See also https://svn.boost.org/trac/boost/ticket/2087 In Christ, Steven Watanabe
participants (2)
-
Steven Watanabe
-
Tilo Nitzsche