Template Function off_highway_can::auto_static_cast

Function Documentation

template<typename To, typename From>
void off_highway_can::auto_static_cast(To &to, const From &from)

Static cast to deduced type.

Template Parameters:
  • To – Cast target type

  • From – Cast from type

Parameters:
  • to – Variable to hold casted type

  • from – Variable to cast from