Re: Replacing old C-style casts with static|reinterpret_cast?



Murray and Kjell: Any thoughts on the prospect of replacing C style casts with reinterpret_cast where appropriate? Chiefly, when converting between opaque (and thus not static_castable, and also probably breaking aliasing rules...) pointers to GObjects at different levels of the inheritance hierarchy.

I did prepare a patch doing this for master, which I think covered all or most instances, and compiled - and can't foresee any possible issues - but obviously discussion is needed (and my foresight is not exactly renowned).

If this works, then it would be another nice C++ification to see throughout the codebase.

Cheers!
Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]