Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.
Some people will die for love,
Others will die because they lost it.
Convert to STL String
Sunday, January 9, 2005 by digitalpeer
#include <string>
#include <sstream>
template <typename T>
std::string tostr(const T& x)
{
std::ostringstream o;
o << x;
return o.str();
}
To check for an error condition on the conversion, simply do an if test on o << x;