Re:Obscure C++ Features
by jheriko on Wednesday December 11, 2013 @07:40AM
(#6887327)
they really aren't identical in the general case - this is a mistake on the part of the author. trivially consider the case where i overload operator[]...
[ Parent
| on HN ]
Re:Obscure C++ Features
by CJefferson on Wednesday December 11, 2013 @08:23AM
(#6887481)
Yes, this is more of an obscure C feature (they are exactly the same in all cases in C, the standard defines a[b] as *(a+b)), which is inherited by C++.