Boost logo

Boost Users :

From: Kevin Jenkins (gameprogrammer_at_[hidden])
Date: 2008-07-26 11:35:27


How do I do this? Is there a way to make the boost::fusion vector hold
references instead of copies? Or hold pointers?

class DoNotCopyConstructMe
{
public:
    DoNotCopyConstructMe() {}
private:
    DoNotCopyConstructMe(const DoNotCopyConstructMe &ref) {}
};

DoNotCopyConstructMe var1,var2,var3,var4;
boost::fusion::push_back(boost::fusion::make_vector(var1,var2,var3),var4);

Error 1 error C2248: 'DoNotCopyConstructMe::DoNotCopyConstructMe'
: cannot access private member declared in class
'DoNotCopyConstructMe'
c:\boost_1_35_0\boost\fusion\view\single_view\single_view.hpp 38


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