Hi Cubbi. You're use typeid here too. Why? It confuses newbies. Either comment all examples that each compiler has it's own output or attach result of all compilers. The best is remove typeid/type_info in all examples.


I did not write this example. --Cubbi 03:14, 28 October 2011 (PDT)
I'm sorry. After the example for remove_cv, I thought it was you. But in any case, I think that in the examples it is needed to get rid of typeid/type_info. Yes, now I can see that P12 has written such an example.
In my opinion it's a better idea to use typeid than is_same in examples when we need to know the actual type of a variable. In these cases typeid(*).name() is used exactly as it is supposed to be used - for debugging purposes. P12 13:12, 28 October 2011 (PDT)