Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1526:Implement method, doesn't work with operators

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
drzoom Posted - Jul 11 2006 : 10:10:53 AM
The "Implement method" function doesn't work with operators. Look at this example.


#pragma once

namespace airplane {
namespace crashs {

class Grounding
{
public:
	Grounding();
	~Grounding();
public:
	const Grounding& operator=( const Grounding& assign );
	bool operator==( const Grounding& compare ) const;
	bool operator!=( const Grounding& compare ) const;
	int operator-( const Grounding& minus ) const;
	const Grounding& operator+=( const Grounding& plus );
	const Grounding& operator-=( const Grounding& minus );
	const Grounding& operator/=( const Grounding& divide );
	const Grounding& operator%=( const Grounding& modulo );
	const Grounding& operator*=( const Grounding& multiply );
	const Grounding& operator|=( const Grounding& or );
	const Grounding& operator&=( const Grounding& and );
	const Grounding& operator--();
	const Grounding& operator<<( const std::string& text );
};

}
}


The result is:


const Grounding& airplane::crashs::Grounding::=( const Grounding& assign */ ) 
{

}
bool airplane::crashs::Grounding::==( const Grounding& compare */ ) const
{

}
bool airplane::crashs::Grounding::!=( const Grounding& compare */ ) const
{

}
int airplane::crashs::Grounding::( const Grounding& minus ) const
{

}
const Grounding& airplane::crashs::Grounding::+=( const Grounding& plus */ ) 
{

}
const Grounding& airplane::crashs::Grounding::-=( const Grounding& minus */ ) 
{

}
const Grounding& airplane::crashs::Grounding::/=( const Grounding& divide */ ) 
{

}
const Grounding& airplane::crashs::Grounding::%=( const Grounding& modulo */ ) 
{

}
const Grounding& airplane::crashs::Grounding::*=( const Grounding& multiply */ ) 
{

}
const Grounding& airplane::crashs::Grounding::|=( const Grounding& or */ ) 
{

}
const Grounding& airplane::crashs::Grounding::&=( const Grounding& and */ ) 
{

}
const Grounding& airplane::crashs::Grounding::-() 
{

}
const Grounding& airplane::crashs::Grounding::<<( const std::string& text ) 
{

}


All operators are affected from this problem. But most operators in this example resulting IMO into two bugs. The first is that the "operator" keyword is missing, the second is a processing problem with default arguments. I think somewhere you matching the "=" character, but because the "=" ist contained in the method name, something goes wrong.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 12 2006 : 11:21:20 PM
Case 1654 fixed in build 1532.
feline Posted - Jul 11 2006 : 6:43:39 PM
thank you for the clear report

case=1654

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