Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Keeping "const" in the right place when auto...

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
smack000 Posted - Jan 04 2007 : 3:44:36 PM
When doing autocomplete for a function, if I declare the function as:

class Foo
{
void Bar( TObjectID const id );
};

...

when I'm implementing the function and type "void Foo::" and I pick the implementation for Bar, it'll put "Bar( const TObjectId id )", moving const to the left side of the object.

My suggestion would be to just keep const whereever it was declared rather than dictating it be to the right.

Thanks.
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Jan 05 2007 : 4:46:37 PM
At a wild guess it might be something in the surrounding code causing the problem. If so the context where you are trying this will have an effect.
smack000 Posted - Jan 05 2007 : 11:59:20 AM
Ok, this is really odd, I can't seem to reproduce this now either, but I know for a fact I was getting this to happen. I know I've restarted devenv since then.

If I can find the proper steps to repro this 100%, I'll reply again.
feline Posted - Jan 05 2007 : 07:49:06 AM
which IDE and version of VA are you using? using VS2003 and VA 1543 I cannot reproduce this problem.

If you are using a recent version of VA you can also try Create Implementation

http://www.wholetomato.com/products/features/createImplementation.asp

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