dynamically-sized text object with a copy constructor, a trivial
assignment operator, and a trivial destructor
I've been shown that a std::string cannot be inserted into a
boost::lockfree::queue.
boost::lockfree::queue is too valuable to abandon, so I think I could use
very large, fixed length chars to pass the data according to the
requirements (assuming that even satifies since I'm having trouble
learning about how to satisfy these requirements), but that will eat up
memory if I want large messages.
Does a dynamically-sized text object with a copy constructor, a trivial
assignment operator, and a trivial destructor exist? If so, where? If not,
please outline how to manifest one.
No comments:
Post a Comment