U
uotani.arisa
Hi,
Can someone tell me how to declare a pointer to a vector of pointers?
I'm just not sure how to do this...
I've tried essentially the following:
vector<string *> * v;
....
void foo( const string a1, vector<string *> * a2 )
{
....
}
and I get the following error:
error C2664: 'foo' : cannot convert parameter 2 from
'class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *> > *'
to
'class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *> >'
Any help would be greatly appreciated... Thanks!
Can someone tell me how to declare a pointer to a vector of pointers?
I'm just not sure how to do this...
I've tried essentially the following:
vector<string *> * v;
....
void foo( const string a1, vector<string *> * a2 )
{
....
}
and I get the following error:
error C2664: 'foo' : cannot convert parameter 2 from
'class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *> > *'
to
'class std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > *> >'
Any help would be greatly appreciated... Thanks!