fork download
  1. #include <map>
  2.  
  3. struct A : std::map<int, A>::iterator
  4. {
  5. typedef std::map<int, A> map;
  6. A(const std::map<int, A>::iterator& other) : std::map<int, A>::iterator(other) {}
  7. };
  8.  
  9. A::map m;
  10.  
  11. int main()
  12. {
  13. m.insert(std::make_pair(0, m.end()));
  14. }
Success #stdin #stdout 0.01s 2808KB
stdin
Standard input is empty
stdout

Standard output is empty