![](/img/trans.png)
[英]Are there any advantages to pure virtual members (except the human error that they might prevent)?
我有一堆具有純虛擬成員的類,它將由派生的非抽象類填充。 我收到錯誤: 這個錯誤可以通過使用stack<ABC*>來解決,但是堆 memory 訪問比堆棧 memory 慢,所以我正在考慮重寫基礎 class ABC 沒有純虛擬成員。 這樣做會有什么缺點嗎(除了可能使用此代碼的人的人為錯 ...