(Still) be explicit to avoid those array/pointer decay ambiguities

I'm multitasking between three clients at the moment, two of whose projects are based primarily around C++. It's interesting seeing the differences between all the languages, programming styles, and tools, involved. For a consultant - horrid word - it's a refreshing and enlightening experience.

Although there is a C standard and a C++ standard, there are also different degrees of support for the standards by different compilers, not to mention some subtle (and some not-so-subtle) extensions and non-standard features. Consequently, there are myriad ways in which competent programmers can find themselves mired in incompatibilities. And that can even happen when they're adhering to the standard(s)!



February 06, 2010
URL:http://www.drdobbs.com/cpp/still-be-explicit-to-avoid-those-arraypo/228701363

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.