Off-Topic Discussion > Programming
Stupid VC++
blackhole:
--- Quote ---Error 1 error C2440: 'return' : cannot convert from 'PlaneShader::cLinkedListNode<T> *' to 'PlaneShader::cLinkedListNode<T> *'
--- End quote ---
Uchuujinsan:
I had this error once.
The reason was I used a template that couldnt be resolved during compiletime, but only during runtime. Thats impossible either, so the compiler reported an error.
As you are also using templates, maybe check for this?
blackhole:
The problem was actually that I had an unnessacary indirection; not that hard to find, but still funny :P
WMCoolmon:
Reminds me of the time I spent several hours debugging code only to find the problem was that I had &'d a * to make it a **, but the function was still accepting it and assumed it was a *.
blackhole:
I once had an issue with a pointer losing information because the class it was originally created in was destroyed and the pointer was only stored as its base class. Drove me crazy for almost 3 days.
Navigation
[0] Message Index
[#] Next page
Go to full version