|
Boost Users : |
Subject: Re: [Boost-users] Library Developers Battling Cyclic Header Dependency
From: Julian Gonggrijp (j.gonggrijp_at_[hidden])
Date: 2011-03-16 16:51:38
Ryan wrote:
> //File A.hpp
> class B;
>
> class A {
> //...
> };
>
> #include <A_detail.hpp>
>
> //File B.hpp
> class A;
>
> class B {
> //...
> };
>
> #include <B_detail.hpp>
>
> //File A_detail.hpp
> #include <B.hpp>
> B A::convertToB(void) {/*...*/}
> //File B_detail.hpp
> #include <A.hpp>
> A B::convertToA(void) {/*...*/}
Why not use the file structure that Luke proposed 36 minutes before your last email?
-Julian
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net