X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FFormat.cti;h=e70cc4a9923759d0840aaf61d22b143b72db1b77;hb=c505c034e5fdc932c02aa3dc3847a5551011d87e;hp=41b8ab44f9a883f6798fc8931b8fdaf0a9a2df52;hpb=af697a0c8591b38f7ee7dbc3d1d0293f4ff72d37;p=senf.git diff --git a/senf/Utils/Format.cti b/senf/Utils/Format.cti index 41b8ab4..e70cc4a 100644 --- a/senf/Utils/Format.cti +++ b/senf/Utils/Format.cti @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2009 +// Copyright (C) 2009 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -31,9 +31,9 @@ ///////////////////////////////cti.p/////////////////////////////////////// template -prefix_ std::string +prefix_ std::string senf::format::dumpint(T const & v, typename boost::enable_if >::type *) -{ +{ return detail::dumpintSigned(v, std::numeric_limits::digits); } @@ -41,7 +41,21 @@ template prefix_ std::string senf::format::dumpint(T const & v, typename boost::enable_if >::type *) { - return detail::dumpintUnsigned(v, std::numeric_limits::digits); + return detail::dumpintUnsigned(v, std::numeric_limits::digits); +} + +template +prefix_ std::string +senf::format::dumpint(T const & v, typename boost::enable_if >::type *) +{ + return detail::dumpintSigned(v.value(), std::numeric_limits::digits); +} + +template +prefix_ std::string +senf::format::dumpint(T const & v, typename boost::enable_if >::type *) +{ + return detail::dumpintUnsigned(v.value(), std::numeric_limits::digits); } ///////////////////////////////cti.e///////////////////////////////////////