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
 Problem with $BaseClassName$ and $MethodName$
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gdobratz
Junior Member

USA
17 Posts

Posted - Feb 02 2010 :  7:05:05 PM  Show Profile  Reply with Quote
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 .

gdobratz
Junior Member

USA
17 Posts

Posted - Feb 02 2010 :  7:06:25 PM  Show Profile  Reply with Quote
Forgot to note that the snippet insert was attempted where <watch this space> appears.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18995 Posts

Posted - Feb 04 2010 :  5:06:01 PM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 03 2010 :  10:11:42 PM  Show Profile  Reply with Quote
case=39236 is fixed in build 1825

Whole Tomato Software, Inc.
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