List Question
20 TechQA 2024-03-05T11:00:05.077000Is this a valid use case for const_cast?
61 views
Asked by Fabio
Why is a cast `int**const` to `const int**const` forbidden
102 views
Asked by tommsch
const_cast vs mutable and undefined behavior
241 views
Asked by asimes
is `const_cast`ing away const on a reference worth it to preserve the api
129 views
Asked by Fantastic Mr Fox
`const_cast`, top-level const and lvalue-to-rvalue conversions
69 views
Asked by SomeoneWithPassion
Advice about const (member and function)
88 views
Asked by AudioBubble
How does std::map::extract() allow changing the key?
164 views
Asked by chiasmos
How to use the non-const getter if there's a const one too?
165 views
Asked by Zoltán Orosz
casting iterator returned by thrust::find_if to a struct pointer
33 views
Asked by Lida
Is it necessarily bad to use const_cast when working with legacy libraries?
157 views
Asked by Alexey104
Modifying const members of non-const object in C++20
326 views
Asked by Joel Niemelä
How can cpp show 2 different values at the same memory location after using const_cast on a const int variable
32 views
Asked by Raj Kumar Singh
Removing Const: Casting from std::shared_ptr<const T> to T
287 views
Asked by Vero
How do I assign to a const variable using an out parameter in C++?
1.2k views
Asked by Freddy Cansick
can C++20 concepts be used to avoid const/not const duplication?
262 views
Asked by Ludovic Aubert
remove const qualifier of vector in c++
2.7k views
Asked by Albert G Lieu
C++ const_cast over a dynamic_cast and vice versa
378 views
Asked by bandomatteo
Create a streambuf from const char* WITHOUT boost?
636 views
Asked by Captain'Flam
Why is only static_cast able to return new object of requested type?
554 views
Asked by Max Popov
Why isn't assigning c*=40 change the value of a?
52 views
Asked by abid ul islam