1 Mar
2010
1 Mar
'10
1:42 a.m.
On Feb 28, 2010, at 4:18 PM, Krzysztof KosiĆski wrote:
Yes, I can change the snippet in script.cpp to reinterpret_cast if you like. I was just in a hurry to fix a build break and forgot about it.
On the cast itself... reinterpret_cast<> should be the cast of last resort. First always try static_cast<> to see if the code will compile with that. With primitives that will often work.
(of course the rule in general is to just remove casts and the need for them, but that's not what applies in this case)