Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] extended expressions and assignment operator
From: Sebastian Mach (phresnel_at_[hidden])
Date: 2009-08-24 15:14:56


2009/8/13 Maurizio Vitale
<mav_at_cuma.i-did-not-set--mail-host-address--so-tickle-me>

>
> Hi Eric,
>
> I'm trying to have proto allow me to do things like:
>
> (a,b,c) = expr;
>
> where a, b, c are integers of different width and they should be
> assigned the appropriate slice of expr.
>

if in ...

(a,b,c) = expr;

... a,b,c are of unproxied builtin type, then it might not be possible in
C++, as you can not overload operators (in this case 'operator,(lhs,rhs)')
upon builtin types only.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net