SyntaxFix
Write A Post
Hire A Developer
Questions
If you use
std::vector<std::reference_wrapper<std::string>> names{ };
Do not forget, when you use auto in the for loop, to use also get, like this:
for (auto element in : names) { element.get()//do something }