为什么这段代码完全编译?
#include <vector>
using namespace std;
class A
{
virtual void a() = 0;
};
int main()
{
vector<A> a; //won't fail
//A b; //that will
}
为什么这段代码完全编译?
#include <vector>
using namespace std;
class A
{
virtual void a() = 0;
};
int main()
{
vector<A> a; //won't fail
//A b; //that will
}