Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1526: Move Implementation to Source File

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
khb Posted - Jun 29 2006 : 09:31:58 AM
Move Implementation to Source File makes some funny stuff. For example, consider a class (MyClass) with the following two inlines:
bool bRecv(int& i) { return bRecvInteger(i); }
bool bSend(int i)  { return bSendInteger(i); }
When I move both functions in succession to the source file, the following code is generated:
bool MyClass::bRecv(int& i) 
{
    return bRecvInteger(i);

    bool MyClass::bSend(int i) 
    {
        return bSendInteger(i);
    }
}
Regards,
Marcus.
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Jul 09 2006 : 1:37:42 PM
Fixed in 1530.
support Posted - Jun 30 2006 : 6:29:15 PM
Problem exists in VC 6.0 only.

case=1531
khb Posted - Jun 30 2006 : 02:10:23 AM
After adding a blank line to the source Move Implementation to Source File works correctly. I just noticed, that the function seems to always fail when there is no blank line at the end of the file.

Regards,
Marcus.
support Posted - Jun 29 2006 : 11:57:11 AM
Can you retry your example? Move on implementation then add a blank line to the bottom of your cpp. Go back to the header and move the next implementation.

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