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

Subject: [Boost-docs] [boostbook] Supporting variadic template parameters
From: Daniel James (daniel_james_at_[hidden])
Date: 2008-04-30 20:12:02


I'd like to add support for variadic template parameters to BoostBook.
I've attached a patch showing what I've done so far - basically I'm
adding a variadic attribute to template-type-parameter and
template-nontype-parameter, for example:

  <method name="emplace">
      <template-type-parameter name="Args" variadic="1">
    <parameter name="args">
    <type>std::pair&lt;iterator, bool&gt;</type>


  template<typename... Args>
  std::pair<iterator, bool> emplace(Args&&... args)

You can see the output on:


Does this seem like a good solution? Giving the attribute a "1" value
seems very awkward, but I couldn't think of anything better (I copied
it from the 'html-only' attribute). Maybe it would be better to add
new tags for variadic parameters?

This is all pretty simple but my xml is very limited so any reviews
would be appreciated.

Finally, I'll also need to update the boostbook reference. I assume
that I should manually update reference.dtdxml. How is reference.xml
generated from reference.dtdxml?



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