SpiceQA
Questions
Tags
Users
Badges
const-cast
17 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
C++ const_cast over a dynamic_cast and vice versa
user_18064197
0
•
asked Jan 29, 2022
2
1
133
const-cast
dynamic-cast
c++11
c++
Why is only static_cast able to return new object of requested type?
user_14934019
0
•
asked Dec 18, 2021
3
3
210
reinterpret-cast
const-cast
static-cast
dynamic-cast
c++
Is it temporary materialization conversion applied to the operand of the const_cast
user_11796722
0
•
asked Mar 1, 2021
2
1
69
language-lawyer
const-cast
c++
Why does const_casting a heap.top() of priority_queue have undefined behavior?
user_5356096
0
•
asked Dec 12, 2020
3
1
124
c++17
undefined-behavior
priority-queue
const-cast
c++
For unit tests, is there a hackish way to change the value of a const variable?
user_6626554
0
•
asked Aug 26, 2020
2
4
1435
const-cast
googletest
c++11
c++
Const cast to non-pointer non-reference type
user_5376789
0
•
asked Apr 3, 2020
2
1
307
language-lawyer
const-cast
c++
Understanding const correctness with conflicting requirements
user_8783368
0
•
asked Mar 31, 2020
2
2
112
ros
const-cast
constants
arguments
c++
Why type casting of const void* is legal in C not C++ without using static_cast
user_11314523
0
•
asked Feb 26, 2020
3
1
257
reinterpret-cast
const-cast
static-cast
casting
c++
Is it UB to call a non-const method on const instance when the method does not modify members?
user_4117728
0
•
asked Oct 1, 2019
6
2
177
language-lawyer
const-cast
constants
c++
Why doesn't const_cast work on arguments to std::function?
user_115751
0
•
asked Jun 13, 2019
3
2
560
c++20
reinterpret-cast
const-cast
c++
1
(current)
2
Next
Next
Hot Questions