Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create Implementation fails on delete

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
graham.reeds Posted - Aug 07 2008 : 05:40:32 AM
XP, VC6, VAX 10.4.1647.0

With this class:
#pragma once

class test  
{
public:
	test();
	virtual ~test();

	static void* operator new( size_t obj_size, size_t buffer_size );
	static void operator delete( void* obj, size_t buffer_size );

};


Create implementation generates:
#include "test.h"

void* test::operator new( size_t obj_size, size_t buffer_size )
{	
	return;
}

void operator test::operator delete( void* obj, size_t buffer_size )
{	
	return;
}


Which is obviously incorrect on delete...

G.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Aug 07 2008 : 4:09:13 PM
I am seeing the same effect here. Thank you for the clear description.

case=18986

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000