Ticket #1800: range_misses_wchar_check.patch

File range_misses_wchar_check.patch, 707 bytes (added by René Bürgel <r.buergel@…>, 15 years ago)

Patch

  • boost_1_35_0/boost/range/as_literal.hpp

    diff -Naur boost_1_35_0/boost/range/as_literal.hpp boost_1_35_0/boost/range/as_literal.hpp
     
    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]