Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Forward declaration and use in the same statement

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
nodet Posted - Feb 27 2008 : 09:16:51 AM
Hi,

The following seems to me a perfectly valid code, but VA 10.4.1618 under MSVC 8 does not seem to agree, and underscores the 'Y' (the class name) as an unrecognized symbol:

class X {
class Y* y;
};

Was that already known?

Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 28 2008 : 1:07:10 PM
I am seeing the same effect here. Thank you for the clear description.

case=13677

I was not aware you could do that, but it compiles quite happily. For now I would suggest separating out the forward declaration. Personally I think that makes the code easier to follow, but that is also what I am used to seeing

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