title: Passing raw pointer to a function with shared_ptr
body: <p>When I have a function:</p>
  
  <pre><code>void foo(std::shared_ptr&lt;T&gt; a, std::shared_ptr&lt;T&gt; b);
  </code></pre>
  
  <p>is there a chance of memory leak when calling it like this:</p>
  
  <pre><code>foo(new T(), new T());
  </code></pre>