On Fri, Mar 28, 2008 at 3:49 PM, Steven Watanabe <<a href="mailto:watanabesj@gmail.com">watanabesj@gmail.com</a>> 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> > Thanks, this is a great idea. However, while you're doing the insert()<br> > I noticed you're using statc_cast<>(). I'm actually surprised this<br> > compiles.<br> </div>the static_cast calls the templated shared_ptr constructor.<br> <div class="Ih2E3d">> This is basically like casting something to an unrelated type, so I'm<br> > not sure how the compiler is allowing this behavior. This also seems<br> > very inconsistent in that you're using boost::static_pointer_cast()<br> > for going from basically a void* to a signal object.<br> <br> </div>Fine. Consistency wouldn'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>