Advertisement
Guest User

Untitled

a guest
May 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. // a.hpp
  2. #ifndef A_HPP
  3. #define A_HPP
  4.  
  5. struct B;
  6.  
  7. struct A {
  8.   B* transform();
  9. };
  10.  
  11. #endif
  12.  
  13.  
  14. // b.hpp
  15. #ifndef B_HPP
  16. #define B_HPP
  17.  
  18. struct A;
  19.  
  20. struct B {
  21.   A* transfrom();
  22. };
  23.  
  24. #endif
  25.  
  26. // a.cpp
  27. #include "a.hpp"
  28. #include "b.hpp"
  29.  
  30. B* A::transform() {
  31.   ...;
  32. }
  33.  
  34.  
  35. // b.cpp
  36. #include "b.hpp"
  37. #include "a.hpp"
  38.  
  39. A* B::transfrom() {
  40.   ...;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement