fixed a method generation bug with inarg
This commit is contained in:
parent
f353aae43e
commit
c1c741cb0c
3 changed files with 18 additions and 5 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue