On Mon, 9 Mar 2020 at 07:11, Janson R. via Boost
Casts are surely required when you need to write a callback handler which signature is imposed `void(void* payload)` by the C library.
The C++ compiler allows implicit conversions TO a void * type, but to convert FROM a void * type requires an explicit cast. By "not playing nicely" I mean that suddenly everything is a handle to
something in the library and can live wherever the library allocated it (and that assumes that the running system even has dynamic memory allocation).
If C would work like C++ it would be called C++, observing it doesn't work like C++ is a no-op. d. -- @systemdeg "We value your privacy, click here!" Sod off! - degski "Anyone who believes that exponential growth can go on forever in a finite world is either a madman or an economist" - Kenneth E. Boulding "Growth for the sake of growth is the ideology of the cancer cell" - Edward P. Abbey