
27 Jan
2004
27 Jan
'04
7:03 p.m.
"David Abrahams" <dave@boost-consulting.com> wrote in message:
"Jonathan Turkanis" <technews@kangaroologic.com>:
I think there will almost certianly be a compiler error if somepone tries to pass an array pointer, since the dereferencing operations are not supported.
Seriously? Why not?
Because it's more fun to implement that way :-)
It seems as though dereferencing should be fine. And incidentally, upcasting should be fine, too:
S_ptr<D[]> -> S_ptr<B>
;-)
Seriously, maybe this is an indictment of the concept of smart pointers to arrays. It's nice to say we want smart pointers to arrays to behave like ordinary arrays -- but ordinary arrays are really wierd! ;-) Jonathan