Having trouble passing an object into the constructor of another class in C++
<p>I cannot for the life of me work out why this isn't working... Can't compile, keep getting an error "no matching function for call to 'Duty::Duty()'" for the line with the changeDuty constructor. I think it thinks I'm trying to call one of the Duty class constructors? But I just want to pass in a Duty class object!</p>

<pre><code>class Duty
  {
  string Chore;
  string Member;

  public:
  Duty(string dutyInfo);
  Duty(string chore, string member) {Chore = chore; Member = member;}
  };

class changeDuty
  {
  Duty Original;

  public:
  changeDuty(Duty original) {Original = original;}
  };
</code></pre>

<p>After perusing similar questions, I've tried using</p>

<pre><code>changeDuty(Duty&amp; original) {Original = original;}
</code></pre>

<p>and</p>

<pre><code>changeDuty(const Duty&amp; original) {Original = original;}
</code></pre>

<p>Still no dice. What am I doing wrong?</p>
