title: Copy constructor is not called when creating and assigning to array
body: <p>Why the Sample class copy constructor is not called in the below example when I try to initialize Sample class  <code>user():newObj{ {1,1,{0,0,100,100}} , {2,2, {0,0,100,100}} }</code></p>
  <pre><code>#include &lt;iostream&gt;
  
  struct Point
  {
      int x_, y_, x1_, y1_;
      public:
      Point(int x, int y, int x1, int y1)
      {
          x_ = x;
          y_ = y;
          x1_ = x1;
          y1_ = y1;
      }
      Point(const Point &amp;temp)
      {
          std::cout &lt;&lt; &quot;Point copyyyyyyyyyyyy cons called&quot; &lt;&lt; std::endl;
          x_ = temp.x_;
          x1_ = temp.x1_;
          y_ = temp.y_;
          y_ = temp.y1_;
      }
  };
  class Sample
  {
      public:
      Sample(int a, int b, const Point&amp; p):pointObj(p)
      {
          a_ = a;
          b_ = b;
          std::cout &lt;&lt; &quot;Sample constructor called \n&quot; ;
      }
  #if 0 
  Sample(const Sample&amp; temp):pointObj(temp.pointObj)
  {
      std::cout &lt;&lt; &quot;coooooooooooppppppppppppy constructor called&quot; &lt;&lt; std::endl;
      a_ = temp.a_;
      b_ = temp.b_;
  }
  #endif
      private:
     Sample(const Sample&amp;) = delete;
     Sample( volatile  const Sample&amp;) = delete;
     Sample( volatile  Sample&amp;) = delete;
     Sample(Sample&amp;) = delete;
      int a_;
      int b_;
      Point pointObj;
  };
  class user
  {
      private:
          Sample newObj[2];
          Point tempPoint{0,0,100,100};
         
      public:
          user():newObj{ {1,1,{0,0,100,100}} , {2,2, {0,0,100,100}} }
          {
              std::cout &lt;&lt; &quot; user constructor called&quot; &lt;&lt; std::endl;
          }
  };
  int main() {
      // Write C++ code here
      user userObj;
      return 0;
  }
  </code></pre>
  <p>ouput:</p>
  <pre><code>Point copyyyyyyyyyyyy cons called
  Sample constructor called 
  Point copyyyyyyyyyyyy cons called
  Sample constructor called 
   user constructor called
  </code></pre>