Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in static-cast

Accessing subclass members from a baseclass pointer C++

Safety of static_cast to pointer-to-derived class from base destructor

should I use it or static_cast<void*> then static_cast<myType*> to avoid reinterpret_cast?

Why go through the trouble of static_cast-ing a number to a double?

c++ casting double static-cast

static_cast from 'const unsigned char *const *' to 'const char *const *' is not allowed

c++ static-cast

Can vtable overhead be avoided using a static_cast?

C++ proper way to static_cast

C++ static_cast from int* to void* to char* - can you help me to understand this code?

c++ static-cast

Conversion operator implemented with static_cast

reinterpret_cast / static_cast and undefined behavior

Why is static_cast of void* to another type allowed?

Are there performance risks for using static_cast to deal with a vector of mixed (base & derived) objects? (aka "it this a dumb idea?")

c++ vector static-cast

ambiguous call to overloaded function

c++ overloading static-cast

Why is a cast operator to std::optional ignored?

Why is static_cast on an expression acting distributively?

c++ casting static-cast

What does static_cast<T> do to a T&?

Can static_cast turn a non-null pointer into a null pointer?

static_cast void* char* vs static_cast void** char**

c++ casting static-cast

Is my method for avoiding dynamic_cast<> faster than dynamic_cast<> itself?

May I have a real life example where casting through void* works and reinterpret_cast doesn't?