X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FSTLSupport.ct;h=1d0d99fcf2b386da032d5225b5b27415cd446b6a;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=108b9744ec9258b80b6e03402491a002a58eb804;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Utils/Console/STLSupport.ct b/senf/Utils/Console/STLSupport.ct index 108b974..1d0d99f 100644 --- a/senf/Utils/Console/STLSupport.ct +++ b/senf/Utils/Console/STLSupport.ct @@ -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 @@ -40,7 +40,7 @@ template prefix_ std::string senf::console::detail::CollectionArgumentTraitsBase::description() { - return senf::prettyBaseName(typeid(Collection)) + "<" + return senf::prettyBaseName(typeid(Collection)) + "<" + ArgumentTraits::description() + ">"; } @@ -83,7 +83,7 @@ senf::console::detail::CollectionReturnValueTraits::format(Collectio if (i != i_end) for (;;) { os << senf::console::str(*i); - if (++i == i_end) + if (++i == i_end) break; else os << " "; @@ -115,7 +115,7 @@ parse(ParseCommandInfo::TokensRange const & tokens, Collection & out) template prefix_ std::string senf::console::detail::MapArgumentTraits::description() { - return senf::prettyBaseName(typeid(Collection)) + "<" + return senf::prettyBaseName(typeid(Collection)) + "<" + ArgumentTraits::description() + "," + ArgumentTraits::description() + ">"; } @@ -145,7 +145,7 @@ senf::console::detail::MapReturnValueTraits::format(Collection const os << senf::console::str(i->first) << "=" << senf::console::str(i->second); - if (++i == i_end) + if (++i == i_end) break; else os << " ";