Are a const std::vector<T>'s elements logical or physical const?...
Read MoreWhy does this return statement seem to require a const_cast?...
Read MoreCorrect usage(s) of const_cast<>...
Read MoreDoes a const-qualified member function promise not to modify the object? How is this legal?...
Read MoreIs this const_cast in the context of type-erasure undefined behavior?...
Read Morestd::unordered_map data member with const key inside const method not compiling...
Read MoreGetting a mutable element from a std::set, for operations that won't break the order...
Read MoreWhere is the undefined behavior when using const_cast<>?...
Read MoreDoes calling non-const mem. fun. on const object via non-const ref obtained via const_cast invoke UB...
Read MoreWhy is a cast `int**const` to `const int**const` forbidden...
Read Moreconst_cast vs mutable and undefined behavior...
Read Moreis `const_cast`ing away const on a reference worth it to preserve the api...
Read Moreis it ok to use const_cast in member routines to avoid duplicated code...
Read MoreIs it allowed to cast away const on a const-defined object as long as it is not actually modified?...
Read More`const_cast`, top-level const and lvalue-to-rvalue conversions...
Read MoreCan not use dynamic_cast to a const object...
Read MoreHow does std::map::extract() allow changing the key?...
Read MoreHow to use the non-const getter if there's a const one too?...
Read MoreIs it necessarily bad to use const_cast when working with legacy libraries?...
Read MoreHow do I assign to a const variable using an out parameter in C++?...
Read MoreIs it possible to cast a pair<Key, Value> to a pair<const Key, Value>?...
Read MoreFor unit tests, is there a hackish way to change the value of a const variable?...
Read MoreWhy is only static_cast able to return new object of requested type?...
Read MoreRemove duplication in equivalent const and non-const members when returning optional reference by va...
Read MoreIs it safe to use std::string::c_str() to modify the underlying std::string?...
Read MoreWhy does const_casting a heap.top() of priority_queue have undefined behavior?...
Read Morechange the value of const_cast ptr/ref doesn't change the original object value?...
Read Morestatic_cast taking away constness...
Read More