How can I check that function really get a variable that defined as const?
How can I check that function really get a variable that defined as const? Given the following code: template <class Func> void f(Func func , int* param){ func(/* how can I send "param" as const "int*" */); } How can I do it so that if f don't get the variable as const - so we will get error ? f Some minimal code would be handy for an answer to fill in the blank. – chris Jun 29 at 9:10 @chris I edited my question (and I added example in order to clarify my question). – Software_t Jun 29 at 9:17 Which one do you want? "Const pointer" or "pointer to const"? – Nicky C Jun 29 at 9:1...
