non-const pointer argument to a const double pointer parameter
[*] As most times, the compiler is right and intuition wrong. The problem is that if that particular assignment was allowed you could break const-correctness in your program: const int constant = 10; int *modifier = 0; const int ** const_breaker = &modifier; // [*] this is equivalent to your code *const_breaker = & constant; … Read more