boostorg / boostorg/compute

Document capture list for BOOST_COMPUTE_CLOSURE()

Aperta
#361 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
documentation
Lingua principale
C++
Stelle
1.7k
Fork
340
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Document the capture list for `BOOST_COMPUTE_CLOSURE()` better. Indicate that it is a Boost.PP tuple rather than a sequence (perhaps have an example showing capturing multiple values).

From the review:

```
Also,
doesn't explain what format the lists (arguments and capture) should be
in. Preprocessor functions often take lists in other formats, such as a
Boost.PP Sequence
,
and your example only has one-element lists, so it's not enough to
clarify this point. (To be clear: I'm not suggesting you should use
Boost.PP sequences, merely that you should make it clear in the docs
whether you are).
```
##

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.