Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[C++]請問把destructor宣告成protected有何用義?

0 views
Skip to first unread message

giaour

unread,
Apr 6, 2004, 4:11:05 AM4/6/04
to
trace code時看到這樣的用法, 把destructor宣告成protected,
new出來的物件, 無法用delete將其摧毀...
但是在程式結束時又可以執行到那個protected的destructor...
不大了解protected destructor的使用時機, 請大大們解惑~
謝謝~
--
[0m [1;33m※ Origin: [36mYahoo!奇摩 大摩域 [37m<telnet://bbs.kimo.com.tw> [m
[1;35m◆ From: [1;32m61-220-240-30.hinet-ip.hinet.net [m
0 new messages