От: | Lorenzo_LAMAS | ||
Дата: | 06.12.05 15:20 | ||
Оценка: |
int main()
{
const int * p = new const int(10);
delete p;
}
d:\test\main.cpp(3) : error C2468: 'new' : cannot allocate 'const'/'volatile' objects (type is 'const int')
d:\test\main.cpp(4) : error C2664: 'delete' : cannot convert parameter 1 from 'const int *' to 'void *'