Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 "Create Implementation" in namespace problem

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
MrDoomMaster Posted - Apr 20 2007 : 12:59:48 PM
I have the following H file:

namespace testnamespace
{
	struct SomeType
	{
	};

	SomeType add_foo( int op1, int op2 );
}


And the following CPP file:

namespace testnamespace
{
}


When I select "Create Implementation" on the function prototype add_foo(), I get the following changes to my CPP file:


namespace testnamespace
{
	testnamespace::SomeType add_foo( int op1, int op2 )
	{

	}
}


The part colored in red should NOT be generated in the final implementation created. Since the function implementation was created *inside* of the namespace scope, it's redundant to place the namespace before the return type.

I'm sure this has been reported before, but I just wanted to make sure that the problem is known.

Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 20 2007 : 2:40:59 PM
I don't think this exact form of this effect has come up, so I have put in a feature request:

case=6130

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