It throws on code alike:
template<class T>
T* new_p(){
T* result = (T*) operator new (sizeof(T)); // HERE
memset(result, 0, sizeof(T));
result = new (result) T();
return result;
}
So new does not work in VS2010 sometimes of I do something wrong?