Search code examples
Lifetime extension of temporary by non-const reference using const-cast...

c++language-lawyerobject-lifetimeconst-cast

Read More
Modifying element of const std::vector<T> via const_cast...

c++stllanguage-lawyerstdvectorconst-cast

Read More
const_cast<char *>(char* const) not lvalue?...

c++language-lawyerc++17lvalueconst-cast

Read More
Qt example const_cast...

c++qtconst-cast

Read More
Why doesn't const_cast work on arguments to std::function?...

c++reinterpret-castc++20const-cast

Read More
Is casting a pointer to const pointer and cast back to the original type undefined?...

c++language-lawyerundefined-behaviorconst-cast

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

c++language-lawyerconstexprconst-castconstant-expression

Read More
Correct usage(s) of const_cast<>...

c++const-cast

Read More
Accessing an inline function through a const member variable...

c++constantsinlinemember-functionsconst-cast

Read More
C++17 Standard - Cast away const of static...

c++language-lawyerc++17const-cast

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

c++constantslanguage-lawyerconst-cast

Read More
removing constness in templated function...

c++c++11templatesconstantsconst-cast

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

c++stlconst-correctnessconst-castconst-pointer

Read More
Automatic type deduction with const_cast is not working...

c++templatesvisual-studio-2015const-cast

Read More
shared_ptr<const A> to shared_pointer<A>...

c++constantsshared-ptrconst-cast

Read More
Proper way to call a c-function taking non-const pointer arguments, const_cast, reinterpret_cast, la...

cc++17reinterpret-castconst-cast

Read More
why does const_cast from and to a const char * result in strcmp != 0...

arduinostrcmpconst-cast

Read More
convert from 'const QVector<QVector<qreal>>' to 'QVector<QVector<qreal...

c++castingconst-castqvectorqdatastream

Read More
How const prevents writing to specific memory [Clang, Mac OS]...

c++constantsconst-cast

Read More
Why does const_cast remove constness for a pointer but not for a pointer to a const?...

c++const-cast

Read More
const literal versus const function as rvalue?...

c++constantsconst-cast

Read More
Nested static_cast and const_cast...

c++static-castconst-cast

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

c++constantsundefined-behaviorconst-correctnessconst-cast

Read More
How to convert "pointer to pointer type" to const?...

c++constantsconst-cast

Read More
const_cast(this) performance hit...

c++thisconst-cast

Read More
Const casting empty base class...

c++c++14language-lawyerc++17const-cast

Read More
Using const_cast for creating non-const variant of methods...

c++methodsreturnconstantsconst-cast

Read More
const_cast seems to be ignored with C++ templates?...

c++c++11templatesconstantsconst-cast

Read More
Is const_cast safe?...

c++castingconst-cast

Read More
Originally declared as constant confusion...

c++constantsconst-cast

Read More
BackNext