Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in const-cast

Is an attempt to modify a const_cast-ed, but dynamically allocated constant object still undefined behavior? [duplicate]

Const casting empty base class

Filling a std::array at compile time and possible undefined behaviour with const_cast

Why is writing to a non-const object after casting away const of pointer to that object not UB?

Is using const_cast for read-only access to a const object allowed?

behavior of const_cast in C++ [duplicate]

Does casting away constness from "this" and then changing a member value invoke undefined behaviour?

How to find by a const pointer key in a map with non-const pointer keys

Does this const initialization through const_cast have undefined behaviour?

Can one override my const C++ member function returning a const pointer to a internal non-const array using const_cast?

c++ const-cast

Is it possible to cast a pair<Key, Value> to a pair<const Key, Value>?

What value does const void * offer over void *?

Is this undefined behavior with const_cast? [duplicate]

c++ const-cast

C++ const cast, unsure if this is secure

c++ const-cast

Is this const_cast undefined behavior?

c++ const-cast

Where is the undefined behavior when using const_cast<>?

const_cast rules in c++

Can we use `const_cast` to modify a constant variable? [duplicate]

Does const_cast ever cause actual code emission?

const_cast in template. Is there a unconst modifier?