I have this code: http://codepad.org/vz17iZrm
And as long as i comment out the assert's in the constructor on line 10 and the assert in the invariant on line 16 it works as i want.
But otherwise the compiler prints stackoverflow and that's all. Why and how is the stack overflowed with an simple assert?!