4 ms·
You can also 'const' your std::vector when you declare it and it won't work. Any linter or having warnings turned on will catch these issues.
by snovv_crash 4y ago
You can also 'const' your std::vector when you declare it and it won't work. Any linter or having warnings turned on will catch these issues.
- jstimpfle 4y agoconst doesn't make a difference in this case. It's about the passed-by-reference object being destroyed after the function returns. That is because the object was passed as a temporary.