Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Random things that piss you off about C++

Name: Anonymous 2004-12-31 9:02

I hate how function declarations and function definitions usually don't look the same. For example

Declaration:
virtual void doShit()

Definition:
void MyNamespace::MyClass::doShit()

Name: Anonymous 2013-03-03 21:16

char *p = (char *) malloc(BUFZ);

Needing to cast the return type of a function returning void * is pointlessly pedantic, and worse it breaks compatibility with C. It's not like adding the cast makes things any safer - if I cared about safety I would template define everything and not use void pointers at all. Pretending to add safety where none exists is just idiotic.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List