Subject: [Boost-bugs] [Boost C++ Libraries] #1800: range/as_literal.hpp misses checks, whether wchar is even available
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-09 14:02:00
#1800: range/as_literal.hpp misses checks, whether wchar is even available
---------------------------------------------------+------------------------
Reporter: René Bürgel <r.buergel_at_[hidden]> | Owner: nesotto
Type: Patches | Status: new
Milestone: Boost 1.36.0 | Component: range
Version: Boost Development Trunk | Severity: Regression
Keywords: |
---------------------------------------------------+------------------------
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é
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1800>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC