fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <list>
  4. #include <deque>
  5. #include <set>
  6. #include <unordered_set>
  7. using namespace std;
  8. struct A;
  9. struct B;
  10.  
  11. using CA = std::unordered_set< A* >;
  12. using CB = std::unordered_set< B* >;
  13.  
  14.  
  15. struct A
  16. {
  17. int payload;
  18. typename CB::iterator pb; // hard error here
  19. };
  20.  
  21. struct B
  22. {
  23. double payload;
  24. typename CA::iterator pa;
  25. };
  26. int main() {
  27. A a;
  28. B b;
  29. return 0;
  30. }
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty