Plumbing: Move basic format() calls to templates

- format() is already using variadic templates, make use of a plain one
  to remove more code bloat.
This commit is contained in:
Wilhelm Schuermann 2015-06-09 11:13:44 +02:00
parent 57133140fb
commit 2e3b8c8c2a
2 changed files with 8 additions and 45 deletions

View file

@ -686,46 +686,6 @@ const std::string format (const char* value)
return s;
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (char value)
{
std::stringstream s;
s << value;
return s.str ();
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (int value)
{
std::stringstream s;
s << value;
return s.str ();
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (unsigned int value)
{
std::stringstream s;
s << value;
return s.str ();
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (unsigned long value)
{
std::stringstream s;
s << value;
return s.str ();
}
////////////////////////////////////////////////////////////////////////////////
const std::string format (long value)
{
std::stringstream s;
s << value;
return s.str ();
}
////////////////////////////////////////////////////////////////////////////////
const std::string formatHex (int value)
{