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
 Technical Support
 Refactor: "Create Implementation" and "override"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mbobka
Ketchup Master

Russia
86 Posts

Posted - Jun 29 2006 :  04:06:56 AM  Show Profile  Reply with Quote
It's for plain C++ in VS2005.

class CBA {
public:
	virtual void FunctionA();
};
class ABC: public CBA {
public:
	void FunctionA() override;
};


If I try to "Create Implementation" of "FunctionA", sometimes I get implemetation like:

ABC::FunctionA() 
{
}

or like this:

void ABC::FunctionA() override
{
}

Edited by - mbobka on Jun 29 2006 04:07:23 AM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 01 2006 :  12:07:08 PM  Show Profile  Reply with Quote
i suspect that VA is confused by the word "override", i know i am.

using VS2003 the two classes, given empty inline bodies do not compile, but the same code compiles quite happily in VS2005, using a C++ console project in both cases.

do you have any information on what this word is? help in VS2005 just took me to a .NET class, which is not a lot of use.

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

bugfix
Tomato Guru

Germany
324 Posts

Posted - Jul 01 2006 :  12:44:40 PM  Show Profile  Reply with Quote
There you go:)
http://msdn2.microsoft.com/en-us/library/xey702bw.aspx

http://www.mf-sd.de
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 01 2006 :  4:33:24 PM  Show Profile  Reply with Quote
*ah*, and that page got me to:

http://msdn2.microsoft.com/en-us/library/z8ew2153.aspx

i did go looking in google, but did not get anywhere useful. most helpful, thank you, i can see these being bookmarked for future reference.

mbobka can you provide any clues as to when you get override placed in the cpp file? i have tried several tests of this, and i cannot reproduce this.

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

mbobka
Ketchup Master

Russia
86 Posts

Posted - Jul 02 2006 :  05:57:51 AM  Show Profile  Reply with Quote
I think, "override" was placed in .cpp in earler versions of VAX... Currently, I can't reproduce it
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jul 02 2006 :  1:53:57 PM  Show Profile  Reply with Quote
hopefully it is fixed then. if you get this again any help in finding a reproducible case will be appreciated.

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