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
 "Create Implementation" in namespace problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Apr 20 2007 :  12:59:48 PM  Show Profile  Reply with Quote
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!

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 20 2007 :  2:40:59 PM  Show Profile  Reply with Quote
I don't think this exact form of this effect has come up, so I have put in a feature request:

case=6130

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