Why is dereferenced element in const vector of int pointers mutable? – stackoverflow.com

I am not sure the true meaning of const vector<int *> so I compiled the code below to get an idea but am now more confused. vector<int *> v; int x = 1, y = 2; v.push_back(&x); v....

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why is dereferenced element in const vector of int pointers mutable? – stackoverflow.com"