title: How to initialize an object of a class using curly brackets {}
body: <p>I'm looking to make this code compiled with no error (and without using std::initializer_list)
  Here's the code :</p>
  
  <pre><code>template&lt;typename T&gt;
  class Vector {
  public:
      T* Arr;
      int Size = 0;
      int Capacity = 1;
      Vector();
  };
  
  template&lt;typename T&gt;
  Vector&lt;T&gt;::Vector() {
      Arr=new T[1];
  }
  int main()
  {
      Vector&lt;int&gt;V1 = { 1,2,3,4,5 };
  }
  </code></pre>
  
  <p>Here's the Error :</p>
  
  <pre><code>Error C2440: 'initializing': cannot convert from 'initializer list' to 'Vector&lt;int&gt;'
  </code></pre>