In c++, is using a vector of objects a good idea? If not, what's wrong with this c++ code?
#include <vector>
using namespace std;
class A {};
int main() {
vector<A*> v ( new A);
return 0;
}
from g++:
13: error: invalid conversion from
A*' to
unsigned int'