machines-in-motion / shared_memory

realtime interprocess communication
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

replaced mutex swap by mutex copy in array move operator #20

Closed vincentberenz closed 3 years ago

vincentberenz commented 4 years ago

Description

On ubuntu 18.04 (newer version of compiler compared to 16.04), shared memory mutex can no longer be swapped (no idea why. Compilation error). Replaced the swap by a hard copy.

How I Tested

Ran the unit tests and the demos

vincentberenz commented 3 years ago

this was for compilation on 18.04. But apparently things compile fine on 18.04 / c++17 without this change.