Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Implementation fails on delete
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

graham.reeds
Ketchup Master

United Kingdom
51 Posts

Posted - Aug 07 2008 :  05:40:32 AM  Show Profile  Reply with Quote
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.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 07 2008 :  4:09:13 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=18986
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000