Le Wednesday 09 July 2008 12:35:10 mk, vous avez écrit :
I guess the point is to make a vector of referene to string if you don't want
to copy string objects all around but just a word for an address each time.
The signature should be :
vector<string&m ove_slice(vecto r<string&>& vec, int start, int stop, int
dest)
or
vector<string*m ove_slice(vecto r<string*>& vec, int start, int stop, int
dest)
--
_____________
Maric Michaud
vector<stringmo ve_slice(vector <string>& vec, int start, int stop, int
dest)
dest)
to copy string objects all around but just a word for an address each time.
The signature should be :
vector<string&m ove_slice(vecto r<string&>& vec, int start, int stop, int
dest)
or
vector<string*m ove_slice(vecto r<string*>& vec, int start, int stop, int
dest)
--
_____________
Maric Michaud