我想确保我的RAII类总是在堆栈上分配.
如何通过"新"运算符阻止类分配?
c++ operator-overloading c++-faq
c++ ×1
c++-faq ×1
operator-overloading ×1