作者sorryChen (陈扬和)
看板Programming
标题请问C++ Class中 const static object 的life cycle
时间Thu Sep 18 14:44:28 2008
想要在class中定义一个const static object. 就说string
如果在
Class C {
const static string* foo;
}
const string foo = new string("hello");
请问这个string何时被产生(占记忆体)何时被消灭呢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 128.125.87.33