ChimeraTK / ControlSystemAdapter

An adapter layer which allows to use control applications with different control system software environments.
GNU Lesser General Public License v3.0
3 stars 2 forks source link

TypeChangingRangeChecking decorator throws boost::numeric::{postive|negative}_overflow in preWrite #37

Open phako opened 4 years ago

phako commented 4 years ago

If the exposed type is smaller than the wrapped type, Trying to write a value that exceeds the limits of the wrapped type will cause preWrite() to throw a boost::numeric::positive_overflow or ::negative_overflow.

This violates the TransferElement specification

If we do not declare it obsolete completely, the RangeChecking type should check type sizes on construction depending on its direction:

such that range issues during the runtime cannot happen.

mhier commented 3 years ago

Now on redmine #8393