Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-01-22 19:06:47

Jonathan Turkanis wrote:
> "Daniel Wallin" <dalwan01_at_[hidden]> wrote in message
>>>so I don't see the need.
>>Actually we are not really relying on SFINAE at all. I got it
> working on
>>VC7, and likely it won't break on VC6 either.
> Are you sure? I used SFINAE a lot, and that's what it looked like to
> me. If not, I'm embarassed. Why doesn't it work on Codewarrior 8.0?

I assume you are thinking of the:

      template<class U>
      move_ptr(U&, typename cant_move_from_const<U>::type = 0);


Don't be fooled by the fact that the primary template is incomplete, it
doesn't need to be.

     template<class U>
     struct cant_move_from_const
         typedef int type;

Will work just as fine. We just need to generate an error whenever U is
const move_ptr<Y>.

Am I missing something?

Daniel Wallin

Boost list run by bdawes at, gregod at, cpdaniel at, john at