Closed tomilov closed 1 year ago
Images are not necessarily read-only input data. Output images are also set with this function.
@atafra it is not an excuse for a violation of const-correctness. I suggest to add const void *
overloading.
Currently there is the only workaround: to use const_cast
. Just because the API is poor in this place.
Set proper
const void *
instead ofvoid *
for read-only input data here.