Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. axioms.hpp:
  2.     struct Axiom {}
  3.     void foo(Axiom);
  4.    
  5. expr.hpp:
  6.     struct Expr;
  7.     void bar(Expr) {}
  8.    
  9. axioms.cpp
  10.     #include "axioms.hpp"
  11.     #include "expr.hpp"
  12.  
  13.     void foo(Axiom a) {
  14.         bar(a.e);
  15.     }
  16.  
  17. expr.cpp
  18.     #include "axioms.hpp"
  19.     #include "expr.hpp"
  20.  
  21.     void bar(Expr e) {
  22.         foo(e.axiom);
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement