Skip to content

Commit

Permalink
Working on it...
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenvp committed Oct 5, 2018
1 parent 167a6fb commit ff71ec1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/src/test_resource_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,18 @@ TEST(test_shared_pool, recycle)
{
uint32_t recycled = 0;

auto recycle = [&recycled](std::shared_ptr<dummy_two> o) {
// clang-format off
auto recycle = [&recycled](std::shared_ptr<dummy_two> o)
{
EXPECT_TRUE((bool)o);
++recycled;
};

auto make = []() -> std::shared_ptr<dummy_two> {
auto make = []() -> std::shared_ptr<dummy_two>
{
return std::make_shared<dummy_two>(3U);
};
// clang-format on

recycle::shared_pool<dummy_two> pool(make, recycle);

Expand Down

0 comments on commit ff71ec1

Please sign in to comment.