JeVoisBase
1.22
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
|
Helper struct to handle type conversions at compile time. More...
Helper struct to handle type conversions at compile time.
Helps decide whether to clamp or not at compile time so that we don't waste time in a test at run time; because std::numeric_limits is a pile of trash, we also need to parameterize the helper by a boolean indicating whether the type we convert to is integer or not. This will determine which numeric limits we use to do the clamping:
Definition at line 247 of file Promotions.H.