19 Jul
2003
19 Jul
'03
13:08
On Friday 18 July 2003 18:56, Stefan Hundhammer wrote:
And the compiler is perfectly right - as usual ;-)
getData() returns a temporary object of type T. It exists only for the duration of this expression's evaluation - it's gone after that line
Thanks, you're right. Using int (instaed of T) also produces the same compile error. At first I thought it was something to do with template. -- -- Verdi March -- -- -- Verdi March --