Moving unique_ptr constructed at lambda capture site into a vector fails

前端 未结 0 1012
青春惊慌失措
青春惊慌失措 2021-01-26 09:31

Dummy code of what I was trying to do:

auto test_foo = [foo_o1 = make_unique(), &vectorOfFoo]() {

auto foo_o2 = make_unique();
vectorOf         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题