$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2008-08-13 16:59:48
On Wed, Aug 13, 2008 at 1:25 PM, Peter Dimov <pdimov_at_[hidden]> wrote:
> Stjepan Rajko:
>
>> function_taking_both( label("hello") & size(1) );
>
> FWIW, I've been using this in a context where I needed "arbitrary" argument
> lists and it works. It has the advantage that the caller only needs to know
> about label and size, the eventual callee only needs to know about the
> arguments it recognizes and can ignore the rest, and the intermediate layers
> can pass everything downstream as-is without knowing about anything.
I do something like that with Boost.Parameter in a GUI library.
A third-party component can create keywords and use them in
the create<> function template, which gives very interface uniformity to
the client.
-- Felipe Magno de Almeida