Is it true that the old C-style casts are removed from C++ standard or are going to be?
I read this somewhere...
Printable View
Is it true that the old C-style casts are removed from C++ standard or are going to be?
I read this somewhere...
Whatever you read is incorrect. C-style casts are not deprecated in the C++ standard.
However, C-style casts are considered bad style in C++, and their usage is discouraged by practitioners. That means a possibility they might be deprecated by a future version of the C++ standard.
Note : deprecated means "normative in the current edition of the Standard, but not guaranteed to be part of the Standard in future revisions".
Also, C-style casts are often hard to understand in C++, since their meaning is implied by the compiler - C++ style casts are much more explicit in their meaning.
--
Mats