<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(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>