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
 Namespaces vs. Move Implmentation to Sourcefile
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vertexwahn
Senior Member

35 Posts

Posted - Jun 16 2011 :  12:56:23 PM  Show Profile  Reply with Quote
Transform.h:

namespace MyCompany
{
	namespace MyGreatApplication
	{
		namespace Data
		{
			class Transform
			{
			public:


				Transform& operator= (const Transform& source)
				{

				}

//..



Right click on "Transform& operator= (const Transform& source)" -> "Move Implmentation to Sourcefile" will result in this code:

Transform.cpp:

Transform& MyCompany::MyApplication::Data::Transform::operator=( const Transform& source )
{

}


Problem: The generated code can not be compiled! The generated code should be:


MyCompany::MyApplication::Data::Transform& 
	MyCompany::MyApplication::Data::Transform::operator=( 
	const MyCompany::MyApplication::Data::Transform& source )
{

}

Edited by - Vertexwahn on Jun 16 2011 12:57:09 PM

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Jun 17 2011 :  1:38:59 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=1247

The problem is triggered by returning a reference. If you remove the "&" from the return type then Move Implementation to Source File works correctly.

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

sean
Whole Tomato Software

USA
2817 Posts

Posted - Feb 02 2016 :  7:56:36 PM  Show Profile  Reply with Quote
case=1247 is fixed in build 2089.
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