No matching function for call in library
<p>I have a class with the public function in a dynamic library:</p>

<pre><code>void setActiveAnimation(std::shared_ptr&lt;MaJR::Animation&gt; anim);
</code></pre>

<p>and when I attempt to call it like so:</p>

<pre><code>    MaJR::Actor actor;
    actor.setActiveAnimation(idleAnimation);
</code></pre>

<p>I get the following:</p>

<pre><code>/home/mike/NixCraft/main.cpp||In function 'int main()':|
/home/mike/NixCraft/main.cpp|12|error: no matching function for call to 'MaJR::Actor::setActiveAnimation(MaJR::Animation&amp;)'|
/home/mike/NixCraft/main.cpp|12|note: candidate is:|
/usr/include/MaJR/Actor.hpp|16|note: void MaJR::Actor::setActiveAnimation(std::shared_ptr&lt;MaJR::Animation&gt;)|
/usr/include/MaJR/Actor.hpp|16|note:   no known conversion for argument 1 from 'MaJR::Animation' to 'std::shared_ptr&lt;MaJR::Animation&gt;'|
||=== Build finished: 4 errors, 0 warnings ===|
</code></pre>

<p>What should I do?</p>
