Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Minor Bug: friend function declaration ignored

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
Mordachai Posted - Mar 26 2013 : 12:26:55 PM
Warning: untested-code example (should get the idea across, at least)
class A
{
 ... // details omitted
private:
 int m_count;
 friend void B::AdjustA(int);
};

class B
{
 ... // details omitted
 void AdjustA(int i)
 {
   m_pA->m_count += i;
 }
private:
 A * m_pA;
};

B::AdjustA will show m_count as underlined in squiggly-red, with a tooltip from VAX saying "Error: member A::m_count (declared at line ...) is inaccessible"
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 27 2013 : 2:20:25 PM
A very easy mistake to make, its sometimes hard to know where the IDE stops and VA starts
Mordachai Posted - Mar 27 2013 : 08:27:31 AM
D'oh! My bad :O
accord Posted - Mar 26 2013 : 5:03:15 PM
This is done by the IDE, not Visual Assist. The IDE underlines errors from VS2010 and up.

Tools -> Options... -> Text Editor -> C/C++ -> Disable Squiggles

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