File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
include/boost/algorithm/string/detail Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 15
15
#include < locale>
16
16
#include < functional>
17
17
18
+ #include < boost/type_traits/make_unsigned.hpp>
19
+
18
20
namespace boost {
19
21
namespace algorithm {
20
22
namespace detail {
@@ -37,7 +39,7 @@ namespace boost {
37
39
CharT operator ()( CharT Ch ) const
38
40
{
39
41
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
40
- return std::tolower ( Ch );
42
+ return std::tolower ( static_cast < typename boost::make_unsigned <CharT>::type> ( Ch ) );
41
43
#else
42
44
return std::tolower<CharT>( Ch, *m_Loc );
43
45
#endif
@@ -57,7 +59,7 @@ namespace boost {
57
59
CharT operator ()( CharT Ch ) const
58
60
{
59
61
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
60
- return std::toupper ( Ch );
62
+ return std::toupper ( static_cast < typename boost::make_unsigned <CharT>::type> ( Ch ) );
61
63
#else
62
64
return std::toupper<CharT>( Ch, *m_Loc );
63
65
#endif
You can’t perform that action at this time.
0 commit comments