Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problem with $BaseClassName$ and $MethodName$

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
gdobratz Posted - Feb 02 2010 : 7:05:05 PM
The following code demonstrates a problem with $BaseClassName$ and $MedhtoName$

Consider the code:
class CVector : public CNotDefined
{
public:
CVector( void );

virtual ~CVector( void );

inline CVector* operator=( const CVector &Source )
{
if( this != &Source )
{
<watch this space>
}
return *this;
}
};

and the snippet:
$BaseClassName$::$MethodName$( $MethodArgs$ );

Where the base class CNotDefined is, as the name implies, not defined. (Obviously I need to fix that )

The snippet inserts the following:
wILDcard::( );

It would be reasonable for $BaseClassName$ to insert either CNotDefined or <blank>, but wILDcard seems inappropriate .

It appears that $MethodName$ and $MethodArgs$ don't like 'operator' functions .
3   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jun 03 2010 : 10:11:42 PM
case=39236 is fixed in build 1825
feline Posted - Feb 04 2010 : 5:06:01 PM
I am seeing the same effect here. Thank you for the clear description. There are two separate problems here. Firstly the wrong function name being inserted for an overloaded operator function:

case=39234

and secondly the wrong thing being inserted when the base class is not known:

case=39236
gdobratz Posted - Feb 02 2010 : 7:06:25 PM
Forgot to note that the snippet insert was attempted where <watch this space> appears.

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