Book a Demo

Author Topic: friend relationship in C++  (Read 3029 times)

Hubi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
friend relationship in C++
« on: February 22, 2010, 10:21:28 pm »
Hi!

I have a problem: How can I generate friend class from model in C++. How do I specify properties of depencency that the following code to generate?
class AAAA
{
};
class BBBB
{
friend class AAA;
}

many thnx!!

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: friend relationship in C++
« Reply #1 on: February 22, 2010, 10:27:51 pm »
Hi,

1st: You shouldn't do that at all!

EA allows to specify the (obsolete) <<friend>> stereotype for a (class) dependency association, but doesn't use it in code generation AFAIK.
Search the forum for this topic, you'll find several threads covering the 'friend' topic and how to deal properly with this.

2nd: Don't use friend at all!

HTH
Günther