fixed a method generation bug with inarg

This commit is contained in:
Andreas Volz 2008-09-13 20:07:58 +02:00
parent f353aae43e
commit c1c741cb0c
3 changed files with 18 additions and 5 deletions

View file

@ -31,6 +31,17 @@
#include <dbus-c++/dbus.h>
#include <dbus/dbus.h>
#include <sstream>
#include <iomanip>
/// create std::string from any number
template <typename T>
std::string toString (const T &thing, int w = 0, int p = 0)
{
std::ostringstream os;
os << std::setw(w) << std::setprecision(p) << thing;
return os.str();
}
#include "xml.h"