steps; steps.clear();
world.filter_builder<StepPrivateData>() .build()
.each([&steps](flecs::entity e, StepPrivateData& step) { SPDLOG_INFO("{}", e.path().c_str());
});}
D:/PROJECTS/alife/src/Init.cpp:91:17: error: 'steps' cannot be captured because it does not have automatic storage duration
```
void foo() { thread_local std::vector<int> v; auto& captured = v; std::invoke([&captured] { }); }
Обсуждают сегодня