This is somewhat related, but also bit different to: C++ "conversion loses qualifiers" compile error
In my code I'm getting following error:
error C2440: 'initializing': cannot convert from 'const git_commit
*const *' to 'const git_commit **'
const git_commit * const *
a pointer to a constant array of pointers to constant git_commits
const git_commit * *
a pointer to a mutable array of pointers to constant git_commits
assigning a const array to a mutable array loses const.