Dummy code of what I was trying to do:
auto test_foo = [foo_o1 = make_unique(), &vectorOfFoo]() { auto foo_o2 = make_unique(); vectorOf