Boost logo

Boost :

Subject: Re: [boost] Fwd: Re: [interprocess][move] enum template argument fails to be a valid base class
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-04-22 04:00:49


----- Original Message -----
From: "Ion Gaztañaga" <igaztanaga_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, April 22, 2010 9:34 AM
Subject: [boost] Fwd: Re: [interprocess][move] enum template argument fails to be a valid base class

>
> >i think I spoke too fast, is_enum needs compiler intrinsics according >to
> >boost documentation, so maybe this approach is not very useful...
>
> Forget it. I was talking about is_union instead. God, the lack of coffee
> is killing me ;-)
 
Hrr, I have added you suggestion and in addition a specialization for is_enum to emulate the compiler behavior

namespace boost {
template <> class is_enum<Test::Types>
    : public mpl::false_
    {};
}

But this doesn't avoids the instantation of rv<Test::Types>. Why do you say that the bug is not in Boost.Move? Am I missing something in the protocol Boost.Move imposes?

Best,
Vicente


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk