<div dir="ltr">On Sun, Jul 7, 2013 at 9:48 PM, ... <span dir="ltr"><<a href="mailto:enerccio@gmail.com" target="_blank">.</a>..></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Why cant you just cast it in the inline part? (void*) comes to mind...<br></div></blockquote></div><div class="gmail_extra"><br>Because I thought that it is not possible to "cast away" a const qualification...<br>
<br>...But you are completely right: even if this might not be a good thing to do under normal circumstances, it actually is possible and solves the problem :)<br><br>Thanks for the advice!<br><br>Dietrich</div><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 7, 2013 at 8:52 PM, Dietrich Bollmann <span dir="ltr"><<a href="mailto:dietrich@formgames.org" target="_blank">dietrich@formgames.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>How can I wrap and return the constant pointer </div><div><br></div><div> const CRhinoCommandContext *context;<br>
</div><div><br></div><div>with c-inline?</div>
<div><br></div><div>Using something like<br></div><div><br></div><div> (ffi:c-inline () () :pointer-void "context" :one-liner t)<br></div><div><br></div><div>results in the error</div>
<div><br></div><div><div> error C2664: 'ecl_make_foreign_data' : cannot convert parameter 3 from 'const CRhinoCommandContext *' to 'void *'</div><div> Conversion loses qualifiers</div>
<div><br></div><div>But I couldn't find something like :const-pointer-void...</div><div><br></div><div>How can I solve this problem?</div><div><br></div><div>Thanks,</div><div><br></div>
<div>Dietrich</div><div><br></div></div></div>
</blockquote></div><br></div>