<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 29, 2014 at 5:33 PM, Alexey Samsonov <span dir="ltr"><<a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Casing (int*) to (float*) doesn't dereference a pointer. However, upcast/downcast (in general case) does dereference a pointer - you may need to read vtable and adjust the pointer value accordingly.</blockquote></div><br>I see, so the problem is we're up casting or down casting? I suspect such casts can be avoided? We should only be casting between integers and a single pointer type in the dense map stuff...</div></div>