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
 1526: Move Implementation to Source File
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khb
Tomato Guru

Germany
337 Posts

Posted - Jun 29 2006 :  09:31:58 AM  Show Profile  Reply with Quote
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.

support
Whole Tomato Software

5566 Posts

Posted - Jun 29 2006 :  11:57:11 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

khb
Tomato Guru

Germany
337 Posts

Posted - Jun 30 2006 :  02:10:23 AM  Show Profile  Reply with Quote
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.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 30 2006 :  6:29:15 PM  Show Profile  Reply with Quote
Problem exists in VC 6.0 only.

case=1531
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 09 2006 :  1:37:42 PM  Show Profile  Reply with Quote
Fixed in 1530.
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