c++ STL vector is not acccepting the copy constructor
- by prabhakaran
I wrote a code ( c++,visual studio 2010) which is having a vector, even I though copy const is declared, but is still showing that copy const is not declared
Here the code
#include<iostream>
#include<vector>
using namespace std;
class A
{
public:
A(){cout << "Default A is acting" << endl ;}
A(A &a){cout…