Thank you for your reply. I usually write in the following form return static_cast< type >(*t); It is equivalent to your solutions. There is obviously a bug of the compiler. Kai ___________________________________________________________ Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar eingebaut! http://produkte.web.de/go/toolbar