X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FString.ct;h=8b6c84776361a8d5bfca6121bd99492a72e8ffb2;hb=9cb871b939efe93e35dd96808d25089399acfc46;hp=01c44595bb2ea5ba387a5a60356717b398b565f3;hpb=3a43b572a2c0028b353d47e86fa7546633d6e2cf;p=senf.git diff --git a/senf/Utils/String.ct b/senf/Utils/String.ct index 01c4459..8b6c847 100644 --- a/senf/Utils/String.ct +++ b/senf/Utils/String.ct @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -40,7 +40,7 @@ prefix_ std::string senf::stringJoin(ForwardReadableRange const & range, std::st typename boost::range_const_iterator::type i (boost::begin(range)); typename boost::range_const_iterator::type const i_end (boost::end(range)); std::stringstream ss; - + if (i != i_end) { for (;;) { ss << *i; @@ -116,7 +116,7 @@ namespace detail { (*interpreter_) << mod; return *this; } - + private: boost::shared_ptr< senf::detail::lexical_stream > interpreter_; }; @@ -127,7 +127,7 @@ prefix_ Target senf::lexical_cast(Source const & arg) { senf::detail::lexical_stream interpreter; Target result; - + if (!(interpreter << arg && interpreter >> result)) boost::throw_exception(boost::bad_lexical_cast(typeid(Source), typeid(Target))); return result;