[Boost-bugs] [Boost C++ Libraries] #5651: Improvements to to_[lower/upper]_copy

Subject: [Boost-bugs] [Boost C++ Libraries] #5651: Improvements to to_[lower/upper]_copy
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-28 11:40:12


#5651: Improvements to to_[lower/upper]_copy
-------------------------------+--------------------------------------------
 Reporter: sairony@… | Owner: pavol_droba
     Type: Patches | Status: new
Milestone: To Be Determined | Component: string_algo
  Version: Boost 1.46.1 | Severity: Optimization
 Keywords: |
-------------------------------+--------------------------------------------
 to_[lower/upper]_copy implicitly deduces the return type from the input
 type unless you supply the output as a second parameter. This is not
 always possible, consider for example: const std::string example =
 to_lower_copy< std::string >("foo") + to_upper_copy< std::string >("bar");
 . To achieve the same we currently need to construct an additional
 unnecessary temporary which only purpose is to inform the algorithm of the
 return type. The attached case_conv.hpp introduces 1 new overload for each
 variant which shouldn't break any existing code. Discussion can be found
 at: http://lists.boost.org/Archives/boost/2011/06/183031.php .

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5651>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC