Thursday 21 July 2011

One of these memory allocations is not like the other.


ChunkRenderer * Alpha = new ChunkRenderer_Debug( NULL );

ChunkRendererPtr Beta = new ChunkRenderer_Debug( NULL );

ChunkRendererPtr Charlie ( new ChunkRenderer_Debug( NULL ) );

Only one of those three is wrong, but only one of those three is right.

No comments:

Post a Comment