I know this is not good code, but i was wondering why dubble delete gives an error (not an exception!!) and dubble free doesn't??
If new/delete works like malloc/free. Is the error caused by the destructor?? and if so why???
Integer *m = (Integer*)malloc(sizeof(*m)); free(m); free(m); Integer *m = new Integer(); delete m; delete m;