title: Using this with array of pointer in class constructor c++
body: <p>I tried to assign an array of pointer to nullptr.</p>
  <pre><code>class ToyBox
  {
  private:
    Toy *toyBox[5];
    int numberOfItems;
  
  public:
    ToyBox()
    {
      this-&gt;numberOfItems = 0;
      this-&gt;toyBox = {}
    }
  }
  </code></pre>
  <p>An error throw at <em>this</em> in <em>this-&gt;toyBox</em>:</p>
  <blockquote>
  <p>expression must be a modifiable lvalueC/C++(137)</p>
  </blockquote>
  <p>Any suggestion to corrected?</p>