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

Templates

Name: Anonymous 2008-10-11 23:49

Sup /prog/.

Learning templates. Devcpp throws this warning:

[Warning] passing `const circle<float>' as `this' argument of `void circle<T>::move(int) [with T = float]' discards qualifiers

Why does passing oneself as a self reference to a member function 'discard qualifiers'? What the hell are qualifiers, and why haven't we met before?

With Love,
Hapless Anon.

Name: Anonymous 2008-10-12 1:10

>>7
It's an assignment. I don't really have a choice in not overloading ==. They just give me the prototypes, and I implement them.

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