title: No viable conversion from 'const std::__1::basic_string<char> to 'std::__1::basic_string<char> *'
body: <p>I'm currently working on an project for a class in which I've to implement cuckoo hashing in C++. The problem is, that C++ and I were never friends and I think we never will be...</p>
  
  <p>The concrete problem is, that I can't wangle to set an pointer on an already existing Object. When I do so, I get the compile error:</p>
  
  <p><em>No viable conversion from 'const std::__1::basic_string to 'std::__1::basic_string</em>'* </p>
  
  <p>The error occurs for both statements:</p>
  
  <pre><code>E * activeE = e;
  E * tempE = v1[pos];
  </code></pre>
  
  <p>v1 is an array of E Objects.</p>
  
  <p>I think this error is caused by my generally misunderstanding in the basic concept of C++. I think for you guys this problem is a joke, but I hope you help me anyway.</p>
  
  <pre><code>template &lt;typename E, size_t N&gt;
  void Hashing&lt;E,N&gt;::add_(const E&amp; e) {
  
      size_t pos = h1(e);
      size_t i = 0;
  
      E * activeE = e;
      E * tempE = v1[pos];
  
      while (i &lt; nmax) {
          if (tempE == NULL) {
              v1[pos] = activeE;
              break;
          }
  
          v1[pos] = activeE;
          activeE = tempE;
  
          pos = h2(activeE);
          tempE = v2[pos];
  
          if (tempE == NULL) {
              v2[pos] = activeE;
              break;
          }
  
          v2[pos] = activeE;
          activeE = tempE;
  
          pos = h1(activeE);
          tempE = v1[pos];
      }
  
  }
  </code></pre>