Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // a.hpp
- #ifndef A_HPP
- #define A_HPP
- struct B;
- struct A {
- B* transform();
- };
- #endif
- // b.hpp
- #ifndef B_HPP
- #define B_HPP
- struct A;
- struct B {
- A* transfrom();
- };
- #endif
- // a.cpp
- #include "a.hpp"
- #include "b.hpp"
- B* A::transform() {
- ...;
- }
- // b.cpp
- #include "b.hpp"
- #include "a.hpp"
- A* B::transfrom() {
- ...;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement