Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1623: "Create Implementation" & casting operators

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
MrDoomMaster Posted - Dec 06 2007 : 5:25:56 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jan 27 2009 : 9:17:50 PM
case=10386 is fixed in build 1715
feline Posted - Dec 07 2007 : 09:15:50 AM
I am seeing the same effect here. Thank you for the clear description.

case=10386

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