namespace WrtDeviceApis {
namespace Commons {
namespace String {
-
/**
* Removes spaces from begining of the string.
* @param str String to remove spaces from.
std::string parse(const T& data)
{
std::ostringstream oss;
- if (!(oss << data))
- {
+ if (!(oss << data)) {
Throw(ConversionException);
}
return oss.str();
}
-
}
}
}