H
Hicham Mouline
Hello,
I am attempting to change a existing large code base and I have this
situation:
A.hpp
class A {
....
friend void B::member_function1() const;
...
};
When I include B.hpp for the definition of B, I seem to fall in
cross-include situation where the include guards
don't work (or work bad...)
I tried forward declaring class B before A, but it seems the full definition
of B is required
to declare its member function as a friend to A.
Is there a solution to this?
regards,
I am attempting to change a existing large code base and I have this
situation:
A.hpp
class A {
....
friend void B::member_function1() const;
...
};
When I include B.hpp for the definition of B, I seem to fall in
cross-include situation where the include guards
don't work (or work bad...)
I tried forward declaring class B before A, but it seems the full definition
of B is required
to declare its member function as a friend to A.
Is there a solution to this?
regards,