eModbus / eModbus

Modbus library for RTU, ASCII and TCP protocols. Primarily developed on and for ESP32 MCUs.

Home Page:https://emodbus.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide copy and move constructors for all eModbus types

Miq1 opened this issue · comments

I noticed we have no copy or move constructors defined for all the eModbus object types, so if we are unlucky and someone is forcing it, we will get a bitwise copy generated by the default mechanism that eventually will fail to work.

We must either add those or at least put a ... = delete; in.