A
Andy
Hi,
Could you explain why vectora<int&> is not allowed?
For example, the following prgram will be given compilation error.
#include <vector>
using namespace std;
int main()
{
vector<int&> myvec;
return 0;
}
Thanks!
Andy
Could you explain why vectora<int&> is not allowed?
For example, the following prgram will be given compilation error.
#include <vector>
using namespace std;
int main()
{
vector<int&> myvec;
return 0;
}
Thanks!
Andy