From: Gerd von Egidy Date: Wed, 16 Dec 2015 09:13:53 +0000 (+0100) Subject: add attention about the string_to interface usage X-Git-Tag: v2.8~21 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=08f2d184a2b09fd65c38bb98c321300bd00eca4b;p=libi2ncommon add attention about the string_to interface usage --- diff --git a/src/stringfunc.hxx b/src/stringfunc.hxx index 673ee7c..b91a18f 100644 --- a/src/stringfunc.hxx +++ b/src/stringfunc.hxx @@ -167,6 +167,8 @@ T string_to(const std::string& s) * @param s the string which should be converted to @a T. * @param result the resulting value of type @a T. * @return @a true iff the internal string stream was EOF after the conversion. + * + * @attention: does not return if the conversion was successful. So check for empty strings before. */ template< class T