On Fri, Mar 28, 2008 at 3:49 PM, Steven Watanabe &lt;<a href="mailto:watanabesj@gmail.com">watanabesj@gmail.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
AMDG<br>
<div class="Ih2E3d"><br>
Robert Dailey wrote:<br>
&gt; Thanks, this is a great idea. However, while you&#39;re doing the insert()<br>
&gt; I noticed you&#39;re using statc_cast&lt;&gt;(). I&#39;m actually surprised this<br>
&gt; compiles.<br>
</div>the static_cast calls the templated shared_ptr constructor.<br>
<div class="Ih2E3d">&gt; This is basically like casting something to an unrelated type, so I&#39;m<br>
&gt; not sure how the compiler is allowing this behavior. This also seems<br>
&gt; very inconsistent in that you&#39;re using boost::static_pointer_cast()<br>
&gt; for going from basically a void* to a signal object.<br>
<br>
</div>Fine. &nbsp;Consistency wouldn&#39;t hurt.</blockquote></div><br>Sorry if it seemed like I was picking on you. I actually meant to ask why you chose one or the other. Thanks for the info.<br>