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

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
space_cowboy Posted - Aug 13 2009 : 11:30:39 AM
Hello everyone !

Let's cut to the chase. I got the following code in the header:

#include <list>

class test {
public:
	typedef std::list< int > mytype;

	mytype::iterator foo( );
};


The implementation file is empty. Now when I do Refactor->Create Implementation on foo, I get this in the implementation file:

mytype::iterator test::foo()
{

}

This does not compile, because the type mytype is not known. It should instead be

test::mytype::iterator test::foo()
{

}

This only seems to happen if the return type of foo is the subtype of a typedef.

Here is my info:
VA_X.dll file version 10.5.1727.0 built 2009.06.12
Licensed to: *****
DevEnv.exe version 8.0.50727.762
msenv.dll version 8.0.50727.762
Font: Courier New 13(Pixels)
Comctl32.dll version 6.0.2900.5512
Windows XP 5.1 Build 2600 S
2 processors (x86)

Platform: Win32
Stable Includes:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
C:\\Programme\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;
C:\\Programme\\Microsoft DirectX SDK (August 2007)\\Include;
C:\\Programme\\Microsoft SDKs\\Windows\\v6.1\\Include;
C:\\Programme\\Intel\\IPP\\5.3.4.087\\ia32\\include;

Other Includes:

Stable Source Directories:
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
C:\\Programme\\Microsoft Visual Studio 8\\VC\\crt\\src;

1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 13 2009 : 1:39:51 PM
I am seeing the same effect here. Thank you for the clear description.

case=1247
On the bright side, fixing the generated code is fairly quick and easy, which is something.

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