Boost logo

Boost :

Subject: Re: [boost] [move] BOOST_RV_REF(TypeWithoutMoveEmulation) parameters
From: Groke, Paul (paul.groke_at_[hidden])
Date: 2017-05-29 07:29:00


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk