Boost logo

Boost :

From: degski (degski_at_[hidden])
Date: 2020-03-09 13:43:53

On Mon, 9 Mar 2020 at 07:11, Janson R. via Boost <boost_at_[hidden]>

> 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.


"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

Boost list run by bdawes at, gregod at, cpdaniel at, john at