Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Keeping "const" in the right place when auto...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

smack000
New Member

USA
4 Posts

Posted - Jan 04 2007 :  3:44:36 PM  Show Profile  Reply with Quote
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.

Jack Mathews
Principal Engineer
Retro Studios

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 05 2007 :  07:49:06 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

smack000
New Member

USA
4 Posts

Posted - Jan 05 2007 :  11:59:20 AM  Show Profile  Reply with Quote
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.

Jack Mathews
Principal Engineer
Retro Studios
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 05 2007 :  4:46:37 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000