title: std::list cannot find type
body: <p>I wrote own realization of Hashmap. As base type I use </p>
  
  <pre><code>template &lt;class K, class V&gt;
  class HashMap{
  public:
      HashMap(){ table.reserve(100); }
  
      bool insert(const K&amp; key, const V&amp; value) {
          size_t index_pos = find_hash_position(key);
          table[index_pos].push_back(std::make_pair(key, value));
          return true;
      }
  private:
      std::vector&lt;std::list&lt;std::pair&lt;K, V&gt;&gt;&gt; table;
  };
  </code></pre>
  
  <p>Then I try creation of Hashmap and insert a value into:</p>
  
  <pre><code>ConcurrentHashMap&lt;std::pair&lt;int, int&gt;, int)&gt; hash_table;
  hash_table.insert(std::make_pair(1, 1), 2);
  </code></pre>
  
  <p>But I have an <code>139</code> error and </p>
  
  <pre><code>Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff768a58f in std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
  Python Exception &lt;type 'exceptions.ValueError'&gt; Cannot find type std::__cxx11::list&lt;std::pair&lt;std::pair&lt;int, int&gt;, int&gt;, std::allocator&lt;std::pair&lt;std::pair&lt;int, int&gt;, int&gt; &gt; &gt;::iterator::_Node: 
  Python Exception &lt;type 'exceptions.ValueError'&gt; Cannot find type std::__cxx11::list&lt;std::pair&lt;std::pair&lt;int, int&gt;, int&gt;, std::allocator&lt;std::pair&lt;std::pair&lt;int, int&gt;, int&gt; &gt; &gt;::iterator::_Node: 
  </code></pre>
  
  <p>What did I wrong and how to overcome this problem?</p>