SpiceQA
Questions
Tags
Users
Badges
static-cast
39 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
Can you static_cast "this" to a derived class in a base class constructor then use the result later?
user_724491
0
•
asked Jul 30, 2022
3
1
147
language-lawyer
static-cast
constructor
c++
How to raise error/warning when static_cast-ing values outside the set of enum class
user_1714692
0
•
asked Mar 27, 2022
2
0
134
static-cast
enums
casting
c++
Does this downcasting lead to undefined behavior?
Admin
1
•
asked Mar 16, 2022
2
1
94
undefined-reference
static-cast
downcast
c++
What's the use of casting a pointer to (Derived*) right before assigning it to a variable of type (Base*)?
user_11874848
0
•
asked Mar 12, 2022
2
0
110
static-cast
polymorphism
inheritance
c++
How can the alignment requirement be satisfied?
Admin
1
•
asked Feb 27, 2022
2
1
94
reinterpret-cast
void-pointers
static-cast
alignment
c++
Why (void*)p instead of static_cast<void*>(p) in C++ standard?
user_10276620
0
•
asked Dec 28, 2021
9
0
168
static-cast
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++
Using std::bind with overloaded methods in namespace in C++
user_7604063
0
•
asked Dec 4, 2021
1
1
75
bind
static-cast
overloading
c++
Why static_cast make the destructor called
user_16705075
0
•
asked Oct 15, 2021
2
1
111
static-cast
c++
Does static_cast<T>(funcReturningT()) inhibit RVO?
user_7772713
0
•
asked Sep 28, 2021
2
1
71
copy-elision
static-cast
c++
1
(current)
2
3
4
Next
Next
Hot Questions