From 5de8b608866047aa575043981ffc83f2109c75f5 Mon Sep 17 00:00:00 2001 From: Jeff Garland Date: Thu, 27 Nov 2003 02:25:13 +0000 Subject: [PATCH] another attempt at fixing borland [SVN r20968] --- include/boost/date_time/date_parsing.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/boost/date_time/date_parsing.hpp b/include/boost/date_time/date_parsing.hpp index 97384e7..12100c9 100644 --- a/include/boost/date_time/date_parsing.hpp +++ b/include/boost/date_time/date_parsing.hpp @@ -36,7 +36,7 @@ namespace date_time { inline std::string convert_to_lower(const std::string& inp) { - std::string tmp(""); + std::string tmp; unsigned i = 0; #if defined(BOOST_NO_STD_LOCALE) while(i < inp.length()) @@ -48,10 +48,11 @@ namespace date_time { { // tolower and others were brought in to std for borland >= v564 // in compiler_config.hpp - tmp += std::tolower(inp.at(i++), loc); + std::string::value_type c(inp.at(i++)); + tmp += std::tolower(c, loc); #endif } - return std::string(tmp); + return tmp; } //! Helper function for parse_date.