diff -Naur boost_1_35_0/boost/range/as_literal.hpp boost_1_35_0/boost/range/as_literal.hpp
|
|
|
|
| 25 | 25 | #include <boost/detail/workaround.hpp> |
| 26 | 26 | |
| 27 | 27 | #include <cstring> |
| | 28 | #ifndef BOOST_NO_CWCHAR |
| 28 | 29 | #include <cwchar> |
| | 30 | #endif |
| 29 | 31 | |
| 30 | 32 | namespace boost |
| 31 | 33 | { |
| … |
… |
|
| 36 | 38 | return strlen( s ); |
| 37 | 39 | } |
| 38 | 40 | |
| | 41 | #ifndef BOOST_NO_INTRINSIC_WCHAR_T |
| 39 | 42 | inline std::size_t length( const wchar_t* s ) |
| 40 | 43 | { |
| 41 | 44 | return wcslen( s ); |
| 42 | 45 | } |
| | 46 | #endif |
| 43 | 47 | |
| 44 | 48 | // |
| 45 | 49 | // Remark: the compiler cannot choose between T* and T[sz] |