Boost logo

Boost :

From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-11-13 18:12:18

David Abrahams wrote:
> Daniel James <daniel_at_[hidden]> writes:
>>David Abrahams wrote:
>>>This approach is superior to bgl_named_params in part because it
>>>avoids undue coupling and dependency in a library design. That
>>>coupling is discussed in depth in this excerpt from C++ Template
>>>Metaprogramming (
>>This coupling could be avoided by using an overloaded operator to
>>combine the arguments, for example:
>> f(slew(.799) | name("z"));
>>An advantage of this method is that it avoids the need for the
>>forwarding functions.
> You could also write
> (slew = .799) | (name = "z")


   f((slew = .799, name = "z"));

With the current library.

Daniel Wallin

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