|
Boost : |
Subject: Re: [boost] [Convert] std::isspace requires unsigned #28
From: Vladimir Batov (Vladimir.Batov_at_[hidden])
Date: 2017-03-21 00:55:24
On 2017-03-21 11:44, Peter Dimov via Boost wrote:
> Vladimir Batov wrote:
>
>> 2) What about std::iswspace? Does it also need static_cast?
>
> No, the wide functions do not require a cast. In practice, wchar_t is
> an unsigned type anyway. (It's technically required to be the same as
> signed char, but I doubt one can encounter that case in practice, and
> even then, I think that passing it to iswspace is required to work.)
Many thanks, Peter. No wonder I found nothing on the net... But thought
I'd better ask. :-) Thanks again.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk