Consider this
void f(vector& p) { } int main() { vector nonConstVec; f(nonConstVec); }
The followi
That's the way templates work - no conversions are applied on the template parameters, so the two vectors are of completely different types.