[Dcmlib] Stroustrup on the Future of C++
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Jul 12 00:12:01 CEST 2005
This is very short to read and present the future of C++ (notion of
concept for all of us template lovers)
http://developers.slashdot.org/developers/05/07/11/1134203.shtml?tid=156&tid=8
I really like the bad examples, where people use code using old cstring
(well worse in this case since they use pointer):
void get_input(char* p)
{
char ch;
while (cin.get(ch) && !iswhite(ch)) *p++ = ch; *p = 0;
}
or people that use void*:
[...] This means that the compiler must assume that the write to
q->data(in memset()) may change the contents of *(q->link)or even
q->linkitself. That basically disables the optimizer. [...]
My 2 cents :)
Mathieu
More information about the Dcmlib
mailing list