Wednesday, December 8, 2010

a new compiler error

While I am currently trying to get KDE on Windows up to a releasable state again (nearly done ;-)), I found an interesting compiler error with the new Visual Studio version (2010):

class Andere;

class Klasse {
Klasse() : bc(NULL, NULL){
std::pair<Andere*, Andere*> bc;

Why could the above fail? Right, because NULL is not of type class Andere. (That works on the other compilers we have...)