Another problem I found is that the auto_ptr class misses the reset method implementation. A brain-dead solution is to derive a new class from the auto_ptr and add this reset implementation (taken from another MS STL):
void reset(_Ty* P = 0) {
// destroy designated object and store new pointer
if (_Ptr != P)
delete (_Ty *)_Ptr;
_Ptr = P;
_Owns = (P != 0);
}
|
|
February '07 |
|
||||
| Mo | Tu | We | Th | Fr | Sa | Su |
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | ||||
2006-2008 Giuseppe 'Cowo' Corbelli | Cowo's homepage | Cowo's photo page | Contact me | Back to top
Design by Andreas Viklund | Serendipity Template by Carl