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

space_cowboy
New Member

8 Posts

Posted - Aug 13 2009 :  11:30:39 AM  Show Profile  Reply with Quote
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;

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Aug 13 2009 :  1:39:51 PM  Show Profile  Reply with Quote
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.

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