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
 1524: overloaded operators
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

o2a
Junior Member

24 Posts

Posted - Jun 20 2006 :  1:44:15 PM  Show Profile  Reply with Quote
Hi,

I'm very happy, that smart pointers are (mostly ) working now (build 1524).
("Mostly" as boost::optional<...> still doesn't work at all with VAX - but I couldn't construct a simple test case without the actual lib so far.)

But there are still some problems with overloaded operators which resemble the "smart pointer problem" from the previous build where the overloaded operator->() didn't show up anywhere.

class OpTestResult
{
public:
	int someVar;
};

class OpTest
{
public:
	OpTestResult operator*	(const OpTest& x)	const	{return OpTestResult();}
	OpTestResult operator/	(const OpTest& x)	const	{return OpTestResult();}
	OpTestResult operator-	(const OpTest& x)	const	{return OpTestResult();}
	OpTestResult operator+	(const OpTest& x)	const	{return OpTestResult();}
	
	void testmethod() {}
};

int main()
{
	OpTest x1,x2;
	x1.|;
	(x1+x2).|;
/*	(x1+x2).someVar; */
       x1.operator+(x2).|;
}


First thing is, that List-Methods (Alt-M IIRC, remapped that) does only show this:
(operator- is missing and operator/ is shown as "operator" without any symbol)

When using Intellisense (List Members) at any of the marked locations, then this is shown:

First, operator* and operator/ are missing...
...for the second and third position (x1+x2). this is wrong in another way as the type of this expression should be OpTestResult offering someVar, while VAX obviously assumes type OpTest.

When I put the cursor at the last statement x1.operator+(x2); it refers to the correct method in VAX's "Definition Field" - but if I try an Intellisense "Parameter Info" inside the parentheses, then nothing happens at all.

Ok, that's all for now.
Looking forward to the next version.

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2006 :  2:59:46 PM  Show Profile  Reply with Quote
alt-m list now showing all of the functions is

case=1403

the short completion listboxes are:

case=1405

in this case using VS2005 you get better results if you turn on:

VA Options -> Text Editor -> listboxes -> get content from default intellisense

but this may give you worse results in other cases, or in different IDE's.

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

support
Whole Tomato Software

5566 Posts

Posted - Aug 08 2006 :  01:26:36 AM  Show Profile  Reply with Quote
Cases 1403 and 1405 are fixed in build 1531.

Edited by - support on Aug 08 2006 01:26:54 AM
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