At some point of my C++ program I want to call a function which takes a void* argument and give a char*.I do as follows:
The error I get is:Code:
function(void* a);//function definition
function("bloom"); //function call
invalid conversion from 'const void*' to 'void*'
How can I fix that?
When it was an integer I just did this:
but I don't know how to handle a char*.Code: