ebu / libadm

Audio Definition Model (ITU-R BS.2076) handling library
https://libadm.readthedocs.io
Apache License 2.0
39 stars 16 forks source link

fixes use of std::forward without forwarding references (and more moves) #154

Closed tomjnixon closed 2 years ago

tomjnixon commented 2 years ago

This fixes #121, pretty much just because it's wrong with little real-world benefit. The use of disableIfCopy is explained in the first commit.

After doing that i found a load more situations where strings can be moved rather than copied. This does seem worthwhile -- when running xml_parser_common_definitions_tests (which just parses common definitions and a simple document), about 1000 allocations (presumably string copies) are saved.