由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - [合集] C++: protect dtor (转载)
相关主题
C++ online Test 2题中餐廳招服務生
Immediate Opening in Quantitative Finance (Major Investment Bank, Tampa Office)数学phd求summer intern refer或者建议
提供Citadel IT和Data Engineer 内推Mortgage quant opening
Calculation of Real Yield to Maturityquant developer position available
Cost of protect a call兼职机会for 金融专业硕士
期货其实很容易[女征男]北京遇上西雅图 (转载)
i am looking for a quant analyst (转载)求内推
求 paper纽约中城Quant Hedge Fund招developer
相关话题的讨论汇总
话题: dtor话题: c++话题: protect话题: class话题: base
进入Quant版参与讨论
1 (共1页)
b***k
发帖数: 2673
1
☆─────────────────────────────────────☆
ccca (cc) 于 (Wed Jul 2 16:47:44 2008) 提到:
发信人: ccca (cc), 信区: Programming
标 题: C++: protect dtor
发信站: BBS 未名空间站 (Wed Jul 2 16:46:22 2008), 转信
C++ coding standards 101:
50:
Make base class destructors public and virtual, or protected and nonvirtual
但是如果 dtor is protected, Base class can't be instantiated...
So dtor must be public and virtual..
所以我想作者是不是搞错了。。。
class A
{
protected:
~A();
}
int main()
{
A a;
A* p=new A()
1 (共1页)
进入Quant版参与讨论
相关主题
纽约中城Quant Hedge Fund招developerCost of protect a call
citadel IT/Quant/Data Scientist 内推期货其实很容易
量化基金的quant和IT工作内推,地点国内i am looking for a quant analyst (转载)
兼职机会for 金融专业硕士(时薪:40-50美金)求 paper
C++ online Test 2题中餐廳招服務生
Immediate Opening in Quantitative Finance (Major Investment Bank, Tampa Office)数学phd求summer intern refer或者建议
提供Citadel IT和Data Engineer 内推Mortgage quant opening
Calculation of Real Yield to Maturityquant developer position available
相关话题的讨论汇总
话题: dtor话题: c++话题: protect话题: class话题: base