In CPP I use a C library, one of the method needs a const void ** as parameter.
In my class I have a property whose type is void *.
I tried to call the function by doing function(&my_property) but the compiler complained that it could not convert a void ** to a const void **.
To fix this issue I used a const cast and did function(const_cast<const void *>(&my_property)).
I try to avoid casting as much as possible and I would like to know if there is a "clean" way to do that without using a const cast.