<div dir="ltr">Greetings all,<div><b><br></b></div><div><b>See the error(s) I'm getting below from my Google Drive:</b></div><div><a href="https://drive.google.com/open?id=1Ni2wc7mSecJR-1KseA_1k4oDKoXuJJrGNtwXl6sHnrA">https://drive.google.com/open?id=1Ni2wc7mSecJR-1KseA_1k4oDKoXuJJrGNtwXl6sHnrA</a><br></div><div><br></div><div><b>Here's the code:</b></div><div><a href="https://drive.google.com/open?id=0By9ufeKqmJYYOThERVMtOVo2STA">https://drive.google.com/open?id=0By9ufeKqmJYYOThERVMtOVo2STA</a><br></div><div><b><br></b></div><div>Thanks,</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 14, 2016 at 3:02 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi John,<div><br></div><div>Can you post the exact error you're getting (if it is too long, you can use <a href="http://pastebin.com" target="_blank">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><br></div><div>--</div><div>Alex</div><div><div class="h5"><div><br><div><blockquote type="cite"><div>On Nov 14, 2016, at 3:53 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-8770596149899013633Apple-interchange-newline"><div><div dir="ltr">I am trying code like so:<div><br></div><div>unique_ptr<nfd::cs::Policy> policy(new JPBPolicy());</div><div><br></div><div>myContentStore.setPolicy(<wbr>policy);</div><div><br></div><div>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><br></div><div>I want to create a subclass of Policy in order to override functions such as doAfterInsert(iterator i);</div><div><br></div><div>In my derived class (subclass), I did provide a body for all the pure virtual methods from the documentation of Policy.</div><div><br></div><div>But I think the problem is the conversion.  Is there some way to do this with say, static_cast ?</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div></div></blockquote></div></div></div></div></div></blockquote></div><br></div>