<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi John,<div class=""><br class=""></div><div class="">Can you post the exact error you're getting (if it is too long, you can use <a href="http://pastebin.com" class="">pastebin.com</a>).  If you also can share the snippet that reproduces the problem, it would be much faster to debug the issue and suggest the solution.</div><div class=""><br class=""></div><div class="">--</div><div class="">Alex</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 14, 2016, at 3:53 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" class="">jpbaugh@umich.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I am trying code like so:<div class=""><br class=""></div><div class="">unique_ptr<nfd::cs::Policy> policy(new JPBPolicy());</div><div class=""><br class=""></div><div class="">myContentStore.setPolicy(policy);</div><div class=""><br class=""></div><div class="">I'm getting tons of errors.  It doesn't like any of the conversions I'm trying to perform...  It may be a misunderstanding of some of the techniques used with managed/smart pointers in terms of polymorphic references, but something's not working.</div><div class=""><br class=""></div><div class="">I want to create a subclass of Policy in order to override functions such as doAfterInsert(iterator i);</div><div class=""><br class=""></div><div class="">In my derived class (subclass), I did provide a body for all the pure virtual methods from the documentation of Policy.</div><div class=""><br class=""></div><div class="">But I think the problem is the conversion.  Is there some way to do this with say, static_cast ?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">John</div></div></div></blockquote></div></div></body></html>