3 ms·
"void foo(const int * );" "The function foo takes a const pointer". I thought foo was taking a pointer a constant, where the pointer itself could change. This
by arm85 10y ago
"void foo(const int * );"
"The function foo takes a const pointer".
I thought foo was taking a pointer a constant, where the pointer itself could change. This may seem pedantic, but perhaps the optimization he expected would have worked if foo took "const int * const ".