X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FFormat.cti;h=d7a6c2ffc169fe33507d811f7ba2123a650ebb1c;hb=4101c2b818ec67e7469ebb44f030eed2185c4ab0;hp=41b8ab44f9a883f6798fc8931b8fdaf0a9a2df52;hpb=af697a0c8591b38f7ee7dbc3d1d0293f4ff72d37;p=senf.git diff --git a/senf/Utils/Format.cti b/senf/Utils/Format.cti index 41b8ab4..d7a6c2f 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 @@ -28,12 +28,12 @@ // Custom includes #define prefix_ inline -///////////////////////////////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,10 +41,24 @@ 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/////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #undef prefix_