catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add 'Introduced in Catch 2.7.1.' note
- Commit
53776a90cf61b932756626655c2d18af50687bb1- Author
- Clare Macrae ·
- Committer
- Martin Hořeňovský
- Parents
4511dc0c1679
Changes
docs/generators.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/generators.md b/docs/generators.md index 57fdf44b..685aea79 100644 --- a/docs/generators.md +++ b/docs/generators.md @@ -96,6 +96,8 @@ scope and thus capturing references is dangerous. If you need to use variables inside the generator expression, make sure you thought through the lifetime implications and use `GENERATE_COPY` or `GENERATE_REF`.** +> `GENERATE_COPY` and `GENERATE_REF` were introduced in Catch 2.7.1. + You can also override the inferred type by using `as<type>` as the first argument to the macro. This can be useful when dealing with string literals, if you want them to come out as `std::string`: