Daniel James | 3 May 19:12
Picon
Favicon

Re: [boostbook] Supporting variadic template parameters

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&amp;</paramtype>
      </parameter>
    </constructor>
  </class>

Or maybe it could be <inherit pack-expansion="1">?

Thanks for the help,

Daniel

Gmane