|
Boost : |
From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-03-18 12:06:57
on 3/18/00 11:24 AM, Miki Jovanovic at miki_at_[hidden] wrote:
> dave abrahams <abraham-_at_[hidden]> wrote:
>> Maybe we should just have an optional template parameter which
>> turns on conversion to T*.
>
> OK, people, I see that there are strong feelings both ways. So. lets
> get practical. Lets see a show of hands that a default smart pointer
> will have conversion like:
>
> operator const void*() const throw() { return ptr; }
>
> And with the BOOST_SMART_PTR_CONVERSION define it would upgrade cast to
> the more dangerous, but sometimes required:
>
> operator T*() const throw() { return ptr; }
>
> As Dave said, this seems like a compromise satisfactory to all.
That isn't what I suggested. Please re-read the words "optional template
parameter".
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk