Think of a function of a class that takes no arguments (like std::list begin). Typing std::list<int> x; x.beg<tab>
places the cursor between the pharentesis: x.begin(I) why not behind it: x.begin()I
Martin
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming
For the most part, VA X places the text caret after the () when there are no arguments. Your case is an exception. Just type the right parenthesis -- it will overwrite the one inserted.
Why is there this exception? I know about the overwrite chance, but wouldn't it be good to place the caret behind the parenthesis? Martin ;-)
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming
We agree it would be good for VA X to be smarter in this case. Instead of being vague, we should have said the problem won't get fixed in the short term.
Caret is placed behind ()! CString is used very often, also here the expansion does not work (I know CString is a template too now).
ACK: It would be good if VA X would be smarter! But anyhow VA X is an absolute perfect utility!
Martin
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming