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
 1623: "Create Implementation" & casting operators
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Dec 06 2007 :  5:25:56 PM  Show Profile  Reply with Quote
IDE: Visual Studio 2008

Hi,

Assume the following C++ class in a header file:

class foo
{
    operator unsigned int();
};

If I "Create Implementation" on the casting operator above, the following C++ output is given in the CPP file:

foo::operator unsigned()
{
}

Obviously the output above is incorrect, as it is missing the "int" part after "unsigned". This does not compile.

The expected output is as follows:

foo::operator unsigned int()
{
}

The missing parts are bolded.

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Dec 07 2007 :  09:15:50 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=10386

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

support
Whole Tomato Software

5566 Posts

Posted - Jan 27 2009 :  9:17:50 PM  Show Profile  Reply with Quote
case=10386 is fixed in build 1715

Whole Tomato Software, Inc.
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