title: C++ Conversion Error: invalid conversion from short int* to short int
body: <p>I got a conversion error and actually don't know how to fix it. </p>
  
  <p>I have to use these structs and dont know how to access the Date struct right.
  Here is my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string.h&gt;
  
  using namespace std;
  
  
  struct Date {
   short year;
   short month;
   short day;
  };
  
  struct Stuff {
    Date birth;
  };
  
  struct ListElement {
    struct Stuff* person;          // Pointer to struct Stuff 
    struct ListElement* next;      // Pointer to the next Element
  };
  
  int main() {
   short birth_year;
   short birth_month;
   short birth_day;
   cin &gt;&gt; birth_year;
   cin &gt;&gt; birth_month;
   cin &gt;&gt; birth_day;
  
  
   ListElement* const start = new ListElement();
   ListElement* actual = start;
  
   actual-&gt;person = new Stuff();
   actual-&gt;person-&gt;birth.year = new short[sizeof(birth_year)]; // Conversion Error
  
  delete start;
  delete actual;
  }
  </code></pre>
  
  <p>Error message from GCC:</p>
  
  <pre class="lang-none prettyprint-override"><code>main.cpp: In function 'int main()':
  main.cpp:35:29: error: invalid conversion from 'short int*' to 'short int' [-fpermissive]
    actual-&gt;person-&gt;birth.year = new short[sizeof(birth_year)]; // Conversion Error
  </code></pre>