Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in const-cast

Is modifying non-mutable member of non-const object in const method Undefined Behaviour?

C++. How can I const_cast pointer to member function?

Force external function to be const

Casting away const-ness of method

const_casting element type of container

removing constness in templated function

When is it ok to modify a value when you remove const with const_cast?

c++ const-cast

Passing the results of `std::string::c_str()` to `mkdtemp()` using `const_cast<char*>()`

Cast or convert a pointer (T*) to a two-const (T const * const) pointer

Why type casting of const void* is legal in C not C++ without using static_cast

Why is only static_cast able to return new object of requested type?

STL std::map, pass by ref to const and the necessity of const_casting

c++ stl const-cast

Applying const_cast on this-> pointer

c++ pointers this const-cast

In C++, reference as class member shall be const or non-const

Modification of elements of std::set - Defined behavior?

c++ set const-cast

Why const_cast away volatile only work for pointer

conversion between 2 types with different const qualifiers

Using const_cast for creating non-const variant of methods

Can you construct a string from `volatile const char*` ? (without using `const_cast`)

c++ c++17 volatile const-cast

const_cast setting a rule and breaking it for function const

c++ c++11 const-cast