title: No suitable conversion function from std::vector<Object *, std::allocator<Object *>>" to "Object *" exists
body: <p>Not sure where I'm going wrong.. I have two classes like so:</p>
  
  <pre><code>class One
  {
      public:
      vector&lt;Object*&gt; myObjects;
  };
  
  class Two
  {
      public:
      vector&lt;Object*&gt; * pointertoObjects;
  };
  </code></pre>
  
  <p>I then want to create a pointer from pointertoObjects to myObjects and am doing so like this:</p>
  
  <pre><code>pointertoObjects = &amp;myObjects;
  </code></pre>
  
  <p>But when I try to access to pass through an element:</p>
  
  <pre><code>void doFunction(Object * object);
  doFunction(pointertoObjects[i])
  </code></pre>
  
  <p>it gives me an error:</p>
  
  <pre><code>Error: no suitable conversion function from std::vector&lt;Object *, std::allocator&lt;Object *&gt;&gt;" to "Object *" exists
  </code></pre>
  
  <p>Where have I gone wrong?</p>