Author |
Topic |
|
jzq740176597
Tomato Guru
China
343 Posts |
Posted - Jul 02 2013 : 01:04:50 AM
|
dot[.] to [->] AutoConvert is very useful. And I always have that option on.
But for some smartPtr wrapper-class,even though I want the [.] after the object but it's always be convert to [->] .
Now the problem is in VA1940 VC6. In later version IDE,if encounter this problem just press[Backspace] the [->] will become [.].
So I hope can deal with that? i.e may temporary disable the AutoConvert by pressing Ctrl or sth.
regards! |
Creation come from persist! |
|
steinsomers
Ketchup Master
Belgium
65 Posts |
Posted - Jul 02 2013 : 10:19:36 AM
|
It is useful, but I turned the option off long ago, annoyed by the insistence of VAX to block access to the dot symbol. It didn't let you choose the real dot over the arrow in any intuitive way I could find (the only way I found was to type a dot elsewhere, copy it, and paste it over the arrow). In 1946, with Visual C++ 2005, things are a lot better. There is an option for disabling the conversion if operator-> is overloaded (don't know if that is recent), and it seems to work; you can also type a second dot and it comes our straight, so that you can then delete the arrow; or you can select the arrow and overwrite it with dot. The backspace thing works too, and it opens a suggestion listbox (albeit an inappropriate one if you do it on a plain old pointer). |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Jul 04 2013 : 11:56:46 AM
|
as steinsomers says, the option:
VA Options -> Advanced -> Correction -> Convert dot to -> if operator -> is overloaded
might help here. steinsomers, this is not that new, but it was added somewhere along the line.
Does your wrapper class overload the -> operator?
If so, and if turning off this VA option is not what you want, we should be able to hide the overloaded -> operator from VA by using a macro. If you are interested I will run a couple of tests here and post a possible code edit to do this.
Alternatively type Backspace after the dot is converted to ->, and VA will undo this, and leave you with a dot. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|
|
|