language: C++ 4.7.2 (gcc-4.7.2)
date: 227 days 9 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <map>
 
struct A : std::map<int, A>::iterator
{
  typedef std::map<int, A> map;
  A(const std::map<int, A>::iterator& other) : std::map<int, A>::iterator(other) {}
};
 
A::map m;
 
int main()
{
  m.insert(std::make_pair(0, m.end()));
}