Author |
Topic |
|
Guillaume
Starting Member
1 Posts |
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 ! |
|
feline
Whole Tomato Software
United Kingdom
19022 Posts |
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 |
zen is the art of being at one with the two'ness |
|
|
sean
Whole Tomato Software
USA
2817 Posts |
Posted - Jun 12 2009 : 8:59:21 PM
|
case=999 is implemented as an option in build 1727 |
|
|
kevinsikes
Tomato Guru
USA
271 Posts |
Posted - Jun 19 2009 : 3:36:57 PM
|
To control this feature, use VA Options | Advanced | Corrections | Convert dot to -> if operator -> is overloaded |
Kevin Sikes Infotainment Platform Design Engineer Ford Motor Company |
|
|
|
Topic |
|