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

c++

Name: Anonymous 2007-09-22 6:03 ID:K2i0uKNc

template<class T> class c1{
    void del();
};

void c1<class T>::del(){
    delete (T*)NULL;
}


warning C4150: deletion of pointer to incomplete type 'T'; no destructor called
see declaration of 'T'


What the hell? Obviously it's incomplete you retards. I don't need your warning.

Name: Anonymous 2007-09-22 17:27 ID:Heaven

>>6
It's kind of clunky and (arguably) doesn't optimize as well as other compilers on some platforms. I don't have any numbers to back up these assertions, and it's an undeniable truth that gcc has more supported target platforms than most anything else, which is useful as fuck and perhaps worth a slight performance loss.

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