epsilonrt / libmodbuspp

Much more than a C++ wrapper for libmodbus
https://epsilonrt.fr/modbuspp
GNU Lesser General Public License v3.0
73 stars 44 forks source link

Fix const accesor of Data<T> #2

Closed de-vri-es closed 4 years ago

de-vri-es commented 4 years ago

This PR fixes const conversion of Data<T> to T. It was trying to return a non-const reference from a const member function. With this change, the member returns a const-reference.

epsilonrt commented 4 years ago

Hi, it's ok. Thank you