Whole Tomato Software Support Forum
Whole Tomato Software Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Visual Assist X
 Suggestions and Ideas
 Create implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
314 Posts

Posted - Dec 11 2006 :  08:33:55 AM  Show Profile  Visit khb's Homepage  Reply with Quote
Create implementation on static member variables would be nice.

Regards,
Marcus.

feline
Moderator

United Kingdom
10888 Posts

Posted - Dec 11 2006 :  08:58:36 AM  Show Profile  Reply with Quote
I rather like this idea

Just to make sure we are talking about the same thing, if you have the following class in a header file:

class bugCreateImplementation
{
    static int m_nStaticMemberVariable;
};


you want VA to generate the code:

int bugCreateImplementation::m_nStaticMemberVariable;


and to place it into the matching cpp file?

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

bugfix
Tomato Guru

Germany
324 Posts

Posted - Dec 11 2006 :  11:36:35 AM  Show Profile  Visit bugfix's Homepage  Reply with Quote
nice idea. just want to mention that in VC it's possible to add definition to .h as well. templated stuff like atl/wtl does that as they often do not have a corresponding cpp file.

like:
const __declspec(selectany) int bugCreateImplementation::m_nStaticMemberVariable;

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

feline
Moderator

United Kingdom
10888 Posts

Posted - Dec 11 2006 :  4:53:12 PM  Show Profile  Reply with Quote
I suggested the cpp file since this is where Create Implementation normally places the code, but it keeps new functions for template classes in the .h file.

I have put in a feature request for this:

case=4058

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

khb
Tomato Guru

Germany
314 Posts

Posted - Dec 12 2006 :  02:20:53 AM  Show Profile  Visit khb's Homepage  Reply with Quote
Feline, this is exactly what I was looking for. Thank you for setting up the feature request!

Regards,
Marcus.
Go to Top of Page

support
Moderator

5029 Posts

Posted - Sep 10 2009 :  3:09:26 PM  Show Profile  Visit support's Homepage  Reply with Quote
case=4058 is implemented in build 1734

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Whole Tomato Software Support Forum © 2010 Whole Tomato Software, Inc Go To Top Of Page
Snitz Forums 2000