title: How to properly create a property to store any amount of values?
body: <p>Making the shift from C++ to C++/CX I stumbled upon that ref classes can't have native members in they're public or protected members, due to possible errors with java and stuff. Instead we now have to use properties, which I can make but only to hold 1 value...</p>
  
  <p>The idea was to make a property that would store 4 floats in an array or vector and later pass the values to a XMVECTOR. The relevant code I have in the class header file until now is:</p>
  
  <pre><code>public:
  property std::vector&lt;float&gt; num{
          void set(std::vector&lt;float&gt; e){
              NUM = e;
          };
          std::vector&lt;float&gt; get(){
              return NUM;
          };
      };
  private:
  std::vector&lt;float&gt; NUM;
  </code></pre>
  
  <p>Later in the .cpp file I do:</p>
  
  <pre><code>std::vector&lt;float&gt; g;
  g.pushback(3);
  num = g;
  </code></pre>
  
  <p>I also make it a string to pass to a TextBox(but that's not important). In the end I just get many similar errors... The 2 errors are:</p>
  
  <pre><code>error C3986: 'set': signature of public member contains native type 'std::vector&lt;_Ty&gt;'
  error C3986: 'set': signature of public member contains native type 'std::allocator&lt;_Ty&gt;'
  </code></pre>
  
  <p>The only thing I imagine is that I can't use strings or vectors. I know Platform::Strings exist but what about vectors??</p>