Results 1 to 5 of 5

Thread: C++ friend classes, with structs and enums

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: C++ friend classes, with structs and enums

    And one more question, are you sure you need struct infoRow to be located inside Temp class?
    I'm a rebel in the S.D.G.

  2. #2
    Join Date
    Oct 2009
    Posts
    33
    Thanks
    2

    Default Re: C++ friend classes, with structs and enums

    Thanks for the replies.

    * InfoRow doesn't have to be inside the Temp class, but it logically makes sense for it to be there. I could just make it a global, but Temp and its friend class are the only classes that will use InfoRow.

    * I realize Temp doesn't have any private members. I just wrote out some code in the reply message box to demonstrate what I meant. In actuality, my class has a bunch of private members that needs to be accessed by "FriendOfTemp".

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.