title: Error creating array of class
body: <p>I have a class of the following form:</p>
  
  <pre><code>class T
  {
     public:
     /// Constructor
     T(const std::string&amp; baseName);
  };
  </code></pre>
  
  <p>Now within the main() method I am trying to create an array of the objects of the class using:</p>
  
  <pre><code>  T* s = new T[20](baseFileName); 
  </code></pre>
  
  <p>I am not getting where I am making a mistake...can someone please help.</p>
  
  <p>The error which I am getting is:</p>
  
  <pre><code>error: ISO C++ forbids initialization in array new [-fpermissive]
  </code></pre>