Boost logo

Boost :

Subject: Re: [boost] [xint] Fifth release -- one more round of reviews, please
From: Adam Merz (adammerz_at_[hidden])
Date: 2010-06-12 21:11:33


Attempting to stream an integer_t to/from a wide stream (e.g. std::wcout,
std::wcin) fails to compile on MSVC2010 because wide streams don't have
insertion/extraction operator overloads defined for std::string, only for
std::wstring.

To take this a bit further, as you probably know, Windows development is
heavily biased towards usage of wchar_t over char, so it feels somewhat limited
(or at least clumsy) that integer_t doesn't work directly with wchar_t strings/
streams/pointers. For example, integer_t has constructors that take char
const*, but no constructors that take wchar_t const*; also, xint::to_string
explicitly returns std::string, with no direct way to get a std::wstring
instead. It would be nice if this was remedied so that working with
wchar_t-based types was as painless as it currently is for char-based types.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk