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
 1522: Regression-bug: operator->() / smartpointers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

o2a
Junior Member

24 Posts

Posted - Jun 12 2006 :  09:10:53 AM  Show Profile  Reply with Quote
Build 1522 seems to have a new bug regarding classes overloading operator->().


struct TestInner
{
	int someVar;
};

class Test
{
public:
	TestInner inner;

	TestInner* operator->()	{return &inner;}
	TestInner& operator*()	{return  inner;}
};

int main()
{
	Test test;
	(*test)._ // ctrl-space ok, shows someVar
	test->_ // ctrl-space wrong, shows inner
}

In older builds, VAX would correctly suggests the members of TestInner behind test-> while 1522 just presents the members of Test there. (In other cases it doesn't give any suggestion at all behind ->.)

Furthermore operator->() is not shown in the member list while operator*() gets listed correctly.

(What's interesting here: I was quite sure, that smart pointers (which are obviously affected by this) did work with this build at first - but when I checked again just now they didn't (as expected). May be there was something in the cache?)

beef
Senior Member

Poland
42 Posts

Posted - Jun 12 2006 :  12:17:32 PM  Show Profile  Reply with Quote
I don't want to create the new thread, because I've using 1552 for a short time, but I have the following observation: smart pointers in this build work much worse than before! :( In fact, they don't work at all for me. I know, that "officially" VAX never supported smart pointers, but at least up to 1446 it works somehow (for example, writing p->Foo(), Foo was not underlined in red, now - it is). Despite that, the new refactoring functionality is GREAT, and I hope that some day smart pointers will be fixed..
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 12 2006 :  1:39:30 PM  Show Profile  Reply with Quote
case=1283 - this is fixed for the next build
Go to Top of Page

beef
Senior Member

Poland
42 Posts

Posted - Jun 12 2006 :  2:02:35 PM  Show Profile  Reply with Quote
quote:
Originally posted by sean

case=1283 - this is fixed for the next build


Great! Thanks.
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