Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 dot to -> convertion problems

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
Guillaume Posted - Feb 23 2006 : 06:49:25 AM
Hi,
I'm using VAX 10.2.1440 on Visual Studio 6, with option "Convert dot to ->" checked.

With the following test code :

----
#include <memory>

class AClass
{
};

void f()
{
std::auto_ptr< AClass > ptrObject( new AClass );
AClass & objectRef = *ptrObject;
}
---

1/ Whenever I type "ptrObject.", within function f() visual assist does NOT convert the dot into ->.
Since ptrObject is a smart pointer, I would prefer that visual assist do the conversion.

2/ Even more annoying: whenever I type "objectRef.", visual assist converts the dot to ->, even thought objectRef is a reference !

So, in both cases Visual Assist does the opposite of what I would expect.

Are you able to reproduce these problems ?
It is possible to have this behaviour changed in a future release ?

Thanks for your time !
3   L A T E S T    R E P L I E S    (Newest First)
kevinsikes Posted - Jun 19 2009 : 3:36:57 PM
To control this feature, use VA Options | Advanced | Corrections | Convert dot to -> if operator -> is overloaded
sean Posted - Jun 12 2009 : 8:59:21 PM
case=999 is implemented as an option in build 1727
feline Posted - Feb 23 2006 : 3:50:04 PM
point 1, as far as i am aware VA does not try to convert . to -> after a smart pointer, however this is a sensible suggestion. it would require VA knowing that it was dealing with a smart pointer class, so i am wondering how easy / reliable this would be. i will put in a feature request, and we can see what the developers make of it.

case=999

point 2 is a known problem

case=832

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