The pmt::cast function can do implicit cast between std::string and arithmetic types. We should not have any implicit conversions. Also it might be better to overload the cast operator for pmts, so that the user can write static_cast<float>(mypmt) rather than pmt::cast<float>(mypmt).
The
pmt::cast
function can do implicit cast betweenstd::string
and arithmetic types. We should not have any implicit conversions. Also it might be better to overload the cast operator for pmts, so that the user can writestatic_cast<float>(mypmt)
rather thanpmt::cast<float>(mypmt)
.