plog icon indicating copy to clipboard operation
plog copied to clipboard

Make Record default move constructible

Open 3XX0 opened this issue 7 years ago • 3 comments

This allows move-constructing Records in C++11 and above

3XX0 avatar May 23 '18 08:05 3XX0

Hi!

I think Record is never copied or moved. Where do we need that?

SergiusTheBest avatar May 23 '18 11:05 SergiusTheBest

This isn't used in plog itself but this is useful for the application developer. For example if one wants to save Records in standard containers (say a std::vector<Record>) to defer logging.

3XX0 avatar May 23 '18 17:05 3XX0

Yes, it makes sense.

SergiusTheBest avatar May 23 '18 17:05 SergiusTheBest