title: Initialize pointer member in struct with array of ints
body: <p>I have an <code>int*</code> member in my struct. I want to initialize this member while initializing the struct, without having to resort to a temp array:</p>
  <pre><code>struct MyStruct{
      int*   arrInts;
  };
  
  MyStruct m = {
      {1, 2}              // Nor does compound literals work: (int[]){2, 4, 6}
  };
  </code></pre>
  <p>This throws an error in MSVC 2019. So a temp <code>int</code> array wont be created by the compiler.</p>
  <p>This struct is used to pass arguments to a DLL function, so I am trying to avoid STL classes object to be passed across the DLL boundary. The number of elements are not known beforehand so I can't declare a fixed size array as a struct member.</p>
  <p>Regd the DLL function, it will simply store the passed data into a class member. The class is declared and used inside the DLL. I will use a std::vector there of course. I just want to avoid it at the DLL boundary/API and using basic types.</p>
  <p>What are my alternatives?</p>