M
michael
Hi all,
why if I can use
std::vector<int>::iterator variable;
can I not use
using std::vector<int>::iterator;
to save typing the std::vector<int>:: each time I use it?
I have a text which has the 'using' statement in it, but when I compile I
get errors like "std::vector<int, std::allocator<int>> is not a namespace".
I don't understand why, if someone could explain it I would be gratefull.
Thanks for your help
Regards
Michael
why if I can use
std::vector<int>::iterator variable;
can I not use
using std::vector<int>::iterator;
to save typing the std::vector<int>:: each time I use it?
I have a text which has the 'using' statement in it, but when I compile I
get errors like "std::vector<int, std::allocator<int>> is not a namespace".
I don't understand why, if someone could explain it I would be gratefull.
Thanks for your help
Regards
Michael