作者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