3 May 19:12
Re: [boostbook] Supporting variadic template parameters
From: Daniel James <daniel_james <at> fmail.co.uk>
Subject: Re: [boostbook] Supporting variadic template parameters
Newsgroups: gmane.comp.lib.boost.documentation
Date: 2008-05-03 17:12:01 GMT
Subject: Re: [boostbook] Supporting variadic template parameters
Newsgroups: gmane.comp.lib.boost.documentation
Date: 2008-05-03 17:12:01 GMT
On 02/05/2008, Douglas Gregor <dgregor <at> osl.iu.edu> wrote:
>
> I would suggest calling the attribute "parameter_pack" or "pack", rather
> than "variadic", since it's more precise. One could even do the same for
> <parameter name="args" pack="1">.
I'll do that. Would it be also be worth adding an attribute when a
class inherits from a pack expansion? Something like:
<class name="mixin">
<template>
<template-type-parameter name="Mixins" pack="1"/>
</template>
<inherit access="public" pack="1">
<type>Mixins</type>
</inherit>
<constructor>
<parameter name="mixins" pack="1">
<paramtype>const Mixins&</paramtype>
</parameter>
</constructor>
</class>
Or maybe it could be <inherit pack-expansion="1">?
Thanks for the help,
Daniel
RSS Feed