I've heard of static_cast operator
Recently I've come across static_case, for instance:
*ppv = static_case<IUnknown>
What does this mean?
I've heard of static_cast operator
Recently I've come across static_case, for instance:
*ppv = static_case<IUnknown>
What does this mean?
Its good old C cast with a new C++ syntax similar to other C++ cast like dynamic_cast. The only advantage I know is just being consistent and also it's easy to grep it.
CPP Ref: http://www.cppreference.com/wiki/keywords/static_cast
Stroustrup on static_cast: http://www.research.att.com/~bs/bs_faq2.html#static-cast
It's a typo : there is no static_case, only static_cast, dynamic_cast, const_cast and reinterpret_cast.
You can see on google that the docs where you find "static_case" have typos and use static_cast and static_case like if it was the same word.
To be sure, just try to use static_case in available compilers.
There is nothing called static_case in C++. There is just static_cast
Static operator for casting object.It's concept for upcast object and downcast object.If you read inheritance object topic,it's can help you. Casting in c++ : http://www.acm.org/crossroads/xrds3-1/ovp3-1.html
the first thing I thought of when I looked at this question - it`s a simple misprint