16 if (T_res::s_type != src->type()) {
17 std::stringstream message;
18 message <<
"Invalid RIO_OnTrackErrorScaling type. Expected "
19 << T_res::s_type <<
" But Received " << src->type();
21 throw std::runtime_error(message.str());
23 return static_cast<const T_res*
>(src);