title: C++ List Iterators Incompatible
body: <p>This is the code that I have in my main.cpp </p>
  
  <pre><code>std::list&lt;AbstractBlock*&gt;::iterator i;
  
      for (i = universe.getLoadedBlocks().begin(); i != universe.getLoadedBlocks().end(); i++){
          window.draw((*i)-&gt;draw());
  
      }
  </code></pre>
  
  <p>Universe.cpp: </p>
  
  <pre><code>std::list&lt;AbstractBlock*&gt; Universe::getLoadedBlocks(){
      return chunkManager-&gt;getLoadedBlocks();
  }
  </code></pre>
  
  <p>CunkManager.cpp: </p>
  
  <pre><code>std::list&lt;AbstractBlock*&gt; ChunkManager::getLoadedBlocks(){
      return loadedBlocks;
  }
  </code></pre>
  
  <p>And loadedBlocks is an <code>std::list&lt;AbstractBlock*&gt;</code> </p>
  
  <p>I'm experimenting with lists and trying them out for the first time... I'm not sure why I'm getting this error </p>