Opened 15 years ago
Closed 14 years ago
#1800 closed Patches (fixed)
range/as_literal.hpp misses checks, whether wchar is even available
Reported by: | Owned by: | Thorsten Ottosen | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | range |
Version: | Boost Development Trunk | Severity: | Regression |
Keywords: | Cc: |
Description
range/as_literal.hpp declares overloads for length() and is_char_ptr(), which also includes overloads for (const) wchar_t*.
This fails to compile on systems without wchar-Support. Also, you shouldn't rely on the presence of the system-header cwchar. There is a macro to test that.
I attached a patch, which makes it at least work on my system. It's Linux/uclibc, where the header cwchar and and the type wchar_t are present, but non of the system functions concerning wchar_t are available.
Kind regards, René
Attachments (2)
Change History (3)
by , 15 years ago
Attachment: | range_misses_wchar_check.patch added |
---|
by , 15 years ago
Attachment: | range_misses_wchar_check.2.patch added |
---|
Note:
See TracTickets
for help on using tickets.
Patch