title: No viable overloaded '=' in C++ vector
body: <p>I am trying to change my bool vector, items[0] to true in game.cpp/.hpp via DeerPark.cpp. However, I cannot figure out why Xcode is throwing this error message. Thank you all for your time and assistance.</p>
  
  <p>This is my error message,</p>
  
  <pre><code>No viable overloaded '='
  </code></pre>
  
  <p>and it take place in DeerPark.cpp when I do </p>
  
  <pre><code>input[1]= true; //and
  input[0]= true;
  </code></pre>
  
  <p>Game.hpp</p>
  
  <pre><code>#include &lt;vector&gt;
  #include &lt;iostream&gt;
  
  class Game
  {
      private:
          std::vector&lt;bool&gt; items = std::vector&lt;bool&gt;(3);
      public:
          int intRange(int min, int max, int input);
          void printMenu();
  };
  </code></pre>
  
  <p>Game.cpp</p>
  
  <pre><code>#include "Game.hpp"
  #include &lt;vector&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  void Game::printMenu()
  {
      items[0] = false;
      items[1] = false;
      items[2] = false;
  }
  </code></pre>
  
  <p>DeerPark.hpp</p>
  
  <pre><code>#include &lt;vector&gt;
  #include "Game.hpp"
  class DeerPark : public Space
  {
      protected:
          int feedCounter;
      public:
          DeerPark();
  
      void feed(Character *person, std::vector&lt;bool&gt;*input);
      void get(Character *person, std::vector&lt;bool&gt;*input);
      void kick(Character *person);
  };
  </code></pre>
  
  <p>DeerPark.cpp</p>
  
  <pre><code>#include "DeerPark.hpp"
  #include "Space.hpp"
  #include &lt;vector&gt;
  #include "Game.hpp"
  
  using namespace std;
  
  DeerPark::DeerPark() : Space()
  {
      feedCounter = 0;
  }
  void DeerPark::feed(Character *person, vector&lt;bool&gt;*input)
  {
  
      feedCounter = feedCounter + 1;
  
      if(feedCounter == 3)
      {
         input[1]= true;
      }
  }
  void DeerPark::get(Character *person, vector&lt;bool&gt;*input)
  {
          Input[0] = true;
  }
  void DeerPark::kick(Character *person)
  {
      person-&gt;setStrength(-5);
  }
  </code></pre>