Boost logo

Boost Users :

From: Sean DeNigris (lotusone_at_[hidden])
Date: 2005-04-01 14:33:22


I want to write:

 

vector<int> MyClass::MemFunc(const Cartridge&) const;

int numCartridges = Cartridge::size();

scoped_array< vector<int> >

vectorArray(new vector<int>[numCartridges]);

int i = 0;

for_each(CartridgeVector::begin(), CartridgeVector::end(),

      var(vectArray)[var(i)++] =

bind(&MyClass::Memfunc, &db, _1));

 

I already compiled:

 

vector<int>* vectArray =

new vector<int>[CartridgeVector::size()]

int i = 0;

for_each(CartridgeVector::begin(), CartridgeVector::end(),

      var(vectArray)[var(i)++] =

bind(&MyClass::Memfunc, &db, _1));

 

But when I add in the scoped_array, I can't get it to work.

            - Sean



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