| 126 | } |
| 127 | |
| 128 | static fu2::unique_function<void()> issue_14_create() { |
| 129 | // remove the commented dummy capture to be compilable |
| 130 | fu2::unique_function<void()> func = |
| 131 | [i = std::vector<std::vector<std::unique_ptr<int>>>{} |
| 132 | // ,dummy = std::unique_ptr<int>() |
| 133 | ]() { |
| 134 | // ... |
| 135 | }; |
| 136 | |
| 137 | return std::move(func); |
| 138 | } |
| 139 | |
| 140 | // https://github.com/Naios/function2/issues/14 |
| 141 | TEST(regression_tests, issue_14) { |