29 May
2017
29 May
'17
7:29 a.m.
danny kabrane wrote:
As for stl containers such as std::string or std::vector, you could use boost::container::string (vector, etc.), they emulate move semantics for C++98 compilers, and as far as I used them in my applications, in most cases they outperform stl containers.
Thanks for the tip. I didn't know about boost::container::string.
But the main drawback that comes with this workaround is the interoperability with other APIs that use std::string (or other) because they don't know boost::container, so you have to write more code that handle this use case.
Yes. Which is why we probably won't be able to use boost::container::string. Anyway it's good to know about the possibility. Regards, Paul Groke