我收到以下錯誤,而編譯自由塞爾納包:錯誤「非放置釋放函數」是什麼?
build/buildd-serna-free_4.3.0.20110221-2-i386-pAsDoD/serna-free-4.3.0.20110221/
sfworks/common/RefCntStorage.h:76:10:
error: non-placement deallocation function 'static void
StringPrivate::RefCntData<E>::operator
delete(void*,StringPrivate::size_type) [with E = QChar,
StringPrivate::size_type = unsigned int]'
/build/buildd-serna-free_4.3.0.20110221-2-i386-pAsDoD/serna-free-4.3.0.20110221/
sfworks/common/RefCntStorage.h:135:9:
error: selected for placement delete
代碼如下所示:
void operator delete(void* p, size_type)
{
::operator delete(p);
}
看起來像gcc 4.5中的變化:http://sourceforge.net/tracker/?func=detail&aid=2991134&group_id=119701&atid=684730 – malat 2011-03-20 09:43:59