From 08f2d184a2b09fd65c38bb98c321300bd00eca4b Mon Sep 17 00:00:00 2001 From: Gerd von Egidy Date: Wed, 16 Dec 2015 10:13:53 +0100 Subject: [PATCH] add attention about the string_to interface usage --- src/stringfunc.hxx | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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 -- 1.7.1