Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Namespaces vs. Move Implmentation to Sourcefile

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
Vertexwahn Posted - Jun 16 2011 : 12:56:23 PM
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 )
{

}
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 02 2016 : 7:56:36 PM
case=1247 is fixed in build 2089.
feline Posted - Jun 17 2011 : 1:38:59 PM
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.

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