X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FSTLSupport.ct;h=108b9744ec9258b80b6e03402491a002a58eb804;hb=084d18afd1abb3c6b19de612dbdf4dbc40ffd795;hp=08116a07f7c96622272e4eb0cb157c2a83472ab5;hpb=1d058092bd771d52996416763b5d9cafadc2e087;p=senf.git diff --git a/senf/Utils/Console/STLSupport.ct b/senf/Utils/Console/STLSupport.ct index 08116a0..108b974 100644 --- a/senf/Utils/Console/STLSupport.ct +++ b/senf/Utils/Console/STLSupport.ct @@ -40,12 +40,7 @@ template prefix_ std::string senf::console::detail::CollectionArgumentTraitsBase::description() { - std::string type (prettyName(typeid(Collection))); - std::string::size_type e (type.find('<')); - if (e == std::string::npos) e = type.size(); - std::string::size_type b (type.rfind(':', e)); - if (b == std::string::npos) b = 0; else ++b; - return type.substr(b,e-b) + "<" + return senf::prettyBaseName(typeid(Collection)) + "<" + ArgumentTraits::description() + ">"; } @@ -120,12 +115,7 @@ parse(ParseCommandInfo::TokensRange const & tokens, Collection & out) template prefix_ std::string senf::console::detail::MapArgumentTraits::description() { - std::string type (prettyName(typeid(Collection))); - std::string::size_type e (type.find('<')); - if (e == std::string::npos) e = type.size(); - std::string::size_type b (type.rfind(':', e)); - if (b == std::string::npos) b = 0; else ++b; - return type.substr(b,e-b) + "<" + return senf::prettyBaseName(typeid(Collection)) + "<" + ArgumentTraits::description() + "," + ArgumentTraits::description() + ">"; }