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
 VAX 1221: friend forward declarations
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Mar 18 2004 :  8:53:26 PM  Show Profile
This is probably a delicate one: when I forward declare a class using friend the class is unknown to VAX at the declaration.

Example: file test.h forward declares and test.cpp implements class knowme.
test.h:
class test { friend class knowme; };

File test.cpp:
#include "test.h"
class knowme { };


In test.cpp the class is properly colored as it should, but there is no way that it is known in the header file.

I think that VAX in such cases should just assume that the class exists somewhere.

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Mar 19 2004 :  04:22:29 AM  Show Profile
For once, someone got there before you! http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=1793

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Mar 19 2004 :  11:01:41 AM  Show Profile
Damn and a public tester too.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000