Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] extended expressions and assignment operator
From: Maurizio Vitale (maurizio.vitale_at_[hidden])
Date: 2009-08-24 15:26:40


>>>>> "Sebastian" == Sebastian Mach <phresnel_at_[hidden]> writes:

    Sebastian> 2009/8/13 Maurizio Vitale
    Sebastian> <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.
>>

    Sebastian> if in ...

    Sebastian> (a,b,c) = expr;

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

a,b and c are such that proto can actually build the tree for a,b,c
which means that at least one of them is a proto terminal.
My question, that I see now was poorly worded, was about operator=.
Sorry for the confusion,

  Maurizio

-- 

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