Skip to content

Commit

Permalink
Fix compilation of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Jun 1, 2020
1 parent 0807fdb commit 0f12995
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/311-Gen-CustomCapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ TEST_CASE("Generate random doubles across different ranges",
}));

auto r2(r1);

// This will take r1 by reference and r2 by value.
// Note that there are no advantages for doing so in this example,
// it is done only for expository purposes.
auto number = Catch::Generators::generate( CATCH_INTERNAL_LINEINFO,
auto number = Catch::Generators::generate( "custom capture generator", CATCH_INTERNAL_LINEINFO,
[&r1, r2]{
using namespace Catch::Generators;
return makeGenerators(take(50, random(std::get<0>(r1), std::get<1>(r2))));
Expand Down

0 comments on commit 0f12995

Please sign in to comment.