invalid conversion from ‘float**’ to ‘const float**’

Posted by Omry on Stack Overflow See other posts from Stack Overflow or by Omry
Published on 2010-03-17T15:19:18Z Indexed on 2010/03/17 15:21 UTC
Read the original article Hit count: 401

Filed under:
|

I have a function that receives float** as an argument, and I tried to change it to take const float**. the compiler (g++) didn't like it and issued :

invalid conversion from ‘float**’ to ‘const float**’

this makes no sense to me, I know (and verified) that I can pass char* to a function that takes const char*, so why not with const float** ?

© Stack Overflow or respective owner

Related posts about c++

Related posts about const-correctness