title: How to swap vectors that contain text objects
body: <p>When I try to swap two vectors, where one of the vectors contains text objects and the other is empty, I get this error:</p>
  
  <pre><code>6363    error C2664: 'void std::vector&lt;mainmenu,std::allocator&lt;_Ty&gt;&gt;::swap(std::vector&lt;_Ty,std::allocator&lt;_Ty&gt;&gt; &amp;)' : cannot convert argument 1 from 'std::vector&lt;textDisplay,std::allocator&lt;_Ty&gt;&gt;' to 'std::vector&lt;mainmenu,std::allocator&lt;_Ty&gt;&gt; &amp;'    c:\sfml-2.3.2\sfml\main.cpp 254287
  
  6463    IntelliSense: a reference of type "std::vector&lt;textDisplay, std::allocator&lt;textDisplay&gt;&gt; &amp;" (not const-qualified) cannot be initialized with a value of type "std::vector&lt;mainmenu, std::allocator&lt;mainmenu&gt;&gt;"  c:\SFML-2.3.2\SFML\main.cpp 254287
  </code></pre>
  
  <p>this is an example of the kind of object that one of the vectors contains. the second vector is empty:</p>
  
  <pre><code>                    textDisplayMainmenu1.text.setString("Broadsword");
                      textDisplayMainmenu1.text.setPosition(positionX, positionY1);
                      textDisplayMainmenuVector1.push_back(textDisplayMainmenu1);
  </code></pre>
  
  <p>When I try to call the swap member function like so I get the above error:</p>
  
  <pre><code>textDisplayVector2.swap(mainmenu1.textDisplayMainmenuVector1);
  </code></pre>
  
  <p>Why isn't this working? What can I do to make it work? </p>