Consider this
void f(vector& p) { } int main() { vector nonConstVec; f(nonConstVec); }
The followi
in addition to other answers, it's worth reading C++ FQA Lite where this (and many others C++ features) are discussed from a critical POV: http://yosefk.com/c++fqa/const.html#fqa-18.1