Re: [Boost-docs] [boostbook] Supporting variadic template parameters

Subject: Re: [Boost-docs] [boostbook] Supporting variadic template parameters
From: Daniel James (daniel_james_at_[hidden])
Date: 2008-05-03 17:12:01


On 02/05/2008, Douglas Gregor <dgregor_at_[hidden]> 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


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:40 UTC