boostorg / boostorg/compute

Document capture list for BOOST_COMPUTE_CLOSURE()

Open
#361 0 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
C++
Stars
1.7k
Forks
340
PR merge metrics
No merged PRs in 30d

Description

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).
```
##

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.