title: C++ passing std::shared_ptr<RECT> through function
body: <pre><code>void PlayerHealthBar::SetSourceRect(std::shared_ptr&lt;RECT&gt; sourceRect)
  {
      this-&gt;sourceRect = sourceRect;
  }
  </code></pre>
  
  <p>.CPP file I am trying to set the source rect from</p>
  
  <pre><code>playerHealthBar-&gt;SetSourceRect(std::shared_ptr&lt;RECT&gt;(0.0, 0.0, 0.0, 0.0));
  </code></pre>
  
  <p>The error is on  the .cpp file on <code>shared_ptr&lt;RECT&gt;</code> saying:    </p>
  
  <pre><code>8   IntelliSense: no instance of constructor "std::shared_ptr&lt;_Ty&gt;::shared_ptr [with _Ty=RECT]" matches the argument list
              argument types are: (double, double, double, double)    ...\Ship.cpp    84
  </code></pre>
  
  <p>I am not sure what this means. Thanks.</p>