c++ static cast double code example
Example: how to static_cast
struct B { };
struct D : B { };
D d;
B& br = d;
static_cast(br); // lvalue denoting the original d object
struct B { };
struct D : B { };
D d;
B& br = d;
static_cast(br); // lvalue denoting the original d object