Search code examples
Using C++, is there a safe and legal way to implement a “safe cast” for a class hierarchy involving ...


c++castingdynamic-castdowncaststatic-cast

Read More
CGAL static_cast failing...


c++cgalstatic-cast

Read More
static_cast from base class pointer to derived class pointer is invalid...


c++pointersstatic-cast

Read More
Can static_cast be done from base class to derived class if derived class contains additional method...


c++static-cast

Read More
static_cast<T> vs T(n) for fundamental types...


c++c++11constructorprimitivestatic-cast

Read More
Why we are using static_cast to NULL...


c++static-cast

Read More
pointer adjustment with no multiple inheritance...


c++multiple-inheritancestatic-castnullptr

Read More
Compile error: "no matching function for call to" when returning static_cast reference...


c++c++11compiler-errorsg++static-cast

Read More
C++ difference between adding const-ness with static_cast and const_cast of "this" object?...


c++static-castconst-cast

Read More
Is it always safe to change a C-style cast to a static_cast?...


c++static-cast

Read More
C++: downcasting and upcasting between derived template class and base class?...


templatescastingstatic-caststatic-polymorphism

Read More
How to convert ‘std::chrono::duration<int, std::ratio<2629746l, 1l> >’ to ‘int’ type?...


c++datec++11c++-chronostatic-cast

Read More
Why can I use static_cast With void* but not With char*...


c++castingreinterpret-caststrict-aliasingstatic-cast

Read More
Why does std::forward return static_cast<T&&> and not static_cast<T>?...


c++c++11rvaluestatic-castforwarding-reference

Read More
casting to the same type...


c++c++11static-cast

Read More
C typecasting uint32 to uint16...


cstatic-cast

Read More
what is wrong this static_cast piece of code?...


c++static-cast

Read More
Method call after invalid C-style cast works...


c++c++11dynamic-caststatic-cast

Read More
C++11 Casting enums to ints...


c++c++11enumsstatic-cast

Read More
What does static_cast<T> do to a T&?...


c++castingreferencervaluestatic-cast

Read More
static_cast vs. direct call to conversion operator?...


c++castingstatic-castconversion-operator

Read More
Do I Have to Specialize Templates If Their Offending Code Is in an if(false)...


c++if-statementmetaprogrammingcompile-timestatic-cast

Read More
Cast float to int, or int to float?...


c++constantsstatic-cast

Read More
Exactly what is unsafe about this static_cast?...


c++undefined-behaviorstatic-cast

Read More
C++ overloaded function pointer ambiguity...


c++function-pointersstatic-cast

Read More
Do Manipulators Convert the Stream Type Somehow?...


c++stringstreamanonymousstatic-castmanipulators

Read More
Why the constructor is called after a static cast?...


c++polymorphismdynamic-caststatic-cast

Read More
When using static cast, does it make more sense to cast as class type or object reference?...


c++static-cast

Read More
How to use static_cast in this statement...


c++castingstatic-cast

Read More
How do I initialize template type variables?...


c++static-castclass-templatevariable-initialization

Read More
BackNext