Every time this function is called, instead of moving the packets, the packets get copied (allocation/deallocation per ancillary type) when they can merely be moved.
Changes tested within a linux environment - not tested on Windows. Need to be careful of any memory leaks, but I think I've covered all bases.
The AJAAncillaryList encapsulates the following data types:
...and AJAAncillaryDataList is a typedef for:
which means the underlying types already have support for move semantics with a C++11 compiler.
I have the following function in my code:
Every time this function is called, instead of moving the packets, the packets get copied (allocation/deallocation per ancillary type) when they can merely be moved.
Changes tested within a linux environment - not tested on Windows. Need to be careful of any memory leaks, but I think I've covered all bases.