Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1522: Regression-bug: operator->() / smartpointers

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
o2a Posted - Jun 12 2006 : 09:10:53 AM
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?)
3   L A T E S T    R E P L I E S    (Newest First)
beef Posted - Jun 12 2006 : 2:02:35 PM
quote:
Originally posted by sean

case=1283 - this is fixed for the next build


Great! Thanks.
sean Posted - Jun 12 2006 : 1:39:30 PM
case=1283 - this is fixed for the next build
beef Posted - Jun 12 2006 : 12:17:32 PM
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..

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