(C++) Passing a vector of objects to a constructor : <pre><code>class A {
public:
   int value;
   A(int value){
       this-&gt;value = value;
   }
};

class Relation{
    vector&lt;A&gt; items;

    Relation(vector&lt;A&gt; items){
       this-&gt;items = items;
    }
}

int main(){
   vector&lt;A&gt; items;
   items.push_back(A(1));

   Relation r1(items);
}
</code></pre>

<p>How do I pass a vector of my new object to a constructor of another object? In line 13, I get an error "no matching function for call to 'A::A()' "</p>
