I'm not sure why, as I don't (Purposefully) use consts anywhere in my code.
What a shame. For me, const-correctness prevents ca. 20% of all errors.
It seems to be a wrong argument passing technique in the function you marked as "friend". Show us the declaration of this function (or the method it accesses 's').