Ticket #1800: range_misses_wchar_check.2.patch

File range_misses_wchar_check.2.patch, 1.2 KB (added by René Bürgel <r.buergel@…>, 15 years ago)
  • boost_1_35_0/boost/range/as_literal.hpp

    diff -Naur bin.UniLoggerFrameBufferRGB565_ULRev0_Dev/boost_1_35_0/boost/range/as_literal.hpp bin.UniLoggerFrameBufferRGB565_ULRev0/boost_1_35_0/boost/range/as_literal.hpp
    old new  
    2525#include <boost/detail/workaround.hpp>
    2626
    2727#include <cstring>
     28#ifndef BOOST_NO_CWCHAR
    2829#include <cwchar>
     30#endif
    2931
    3032namespace boost
    3133{
     
    3638            return strlen( s );
    3739        }
    3840
     41#ifndef BOOST_NO_INTRINSIC_WCHAR_T
    3942        inline std::size_t length( const wchar_t* s )
    4043        {
    4144            return wcslen( s );
    4245        }
     46#endif
    4347
    4448        //
    4549        // Remark: the compiler cannot choose between T* and T[sz]
     
    5862        }
    5963
    6064       
     65#ifndef BOOST_NO_INTRINSIC_WCHAR_T
    6166        inline bool is_char_ptr( wchar_t* )
    6267        {
    6368            return true;
     
    6772        {
    6873            return true;
    6974        }
     75#endif
    7076       
    7177        template< class T >
    7278        inline long is_char_ptr( T /* r */ )