Re: [pushed 1/2] Convert label_text to C++11 move semantics

2022-07-11 Thread Martin Liška
On 7/7/22 22:00, David Malcolm via Gcc-patches wrote: > |libcpp's class label_text stores a char * for a string and a flag saying > whether it owns the buffer. I added this class before we could use C++11, and > so to avoid lots of copying it required an explicit call to > label_text::maybe_free

[pushed 1/2] Convert label_text to C++11 move semantics

2022-07-07 Thread David Malcolm via Gcc-patches
libcpp's class label_text stores a char * for a string and a flag saying whether it owns the buffer. I added this class before we could use C++11, and so to avoid lots of copying it required an explicit call to label_text::maybe_free to potentially free the buffer. Now that we can use C++11, this