Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in const-cast

Can not use dynamic_cast to a const object

Is const_cast valid in a constant expression? (C++14, C++17)

Is there a reason to use const_cast on a string literal in this code?

is using const_cast regularly as a design tool acceptable?

c++ const-cast

What's the difference between char * and const_cast<char*>(string.c_str())

c++ char const-cast osc

static_cast taking away constness

c++ static-cast const-cast

C++17 Standard - Cast away const of static

const_cast and UB

const_cast doesn't work c++? [duplicate]

c++ const-cast

Lifetime extension of temporary by non-const reference using const-cast

Is it UB to call a non-const method on const instance when the method does not modify members? [duplicate]

Need clarifications in C-style, reinterpret, and const casts

Compiler switch to disable const_cast semantics in c-style casts?

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?

Why is (int&)0 ill-formed?