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: René Bürgel <r.buergel@…> 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)

range_misses_wchar_check.patch (707 bytes ) - added by René Bürgel <r.buergel@…> 15 years ago.
Patch
range_misses_wchar_check.2.patch (1.2 KB ) - added by René Bürgel <r.buergel@…> 15 years ago.

Download all attachments as: .zip

Change History (3)

by René Bürgel <r.buergel@…>, 15 years ago

Patch

by René Bürgel <r.buergel@…>, 15 years ago

comment:1 by Thorsten Ottosen, 14 years ago

Resolution: fixed
Status: newclosed

Applied

Thanks!

-Thorsten

Note: See TracTickets for help on using tickets.