|
Boost : |
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-11-13 18:10:19
Peter Dimov wrote:
> Daniel James wrote:
>
>>
>> This coupling could be avoided by using an overloaded operator to
>> combine the arguments, for example:
>>
>> f(slew(.799) | name("z"));
>
>
> I've been using essentially the same technique, except that I chose & as
> a combiner operator. | isn't bad, too.
But it still looks considerably worse than:
f(slew = 0.799, name = "z");
And you lose the positional meaning.
-- Daniel Wallin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk