Subject: Re: [boost] Checking interest in to_string functions
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-09-30 09:13:27
Antony Polukhin wrote:
> As was mentioned in `[boost] to_string(v)`
> 1) Functions to_string and to_wstring are part of the upcoming C++0x
> standard. However, there are no functions for char16_t and char32_t
> 2) Some users can't use C++11 in some projects for quite some time,
> but can use boost.
> 3) "to_string(5)" is a lot shorter than
> "lexical_cast<std::string>(5)". Some users would like to use a shorter
> Is there interest in stoi, stoll, stof, to_string, to_wstring,
> to_u16string, stod and other functions for char, wchar_t, char16_t and
> char32_t conversions?
Sure. But I suspect that you couldn't use lexical_cast for this purpose.
Whether you could Boost.Spirit for that or just sprintf, and the strtoxx
family functions is up to you provided the implementation satisfy the C++11
> Shall I add them to lexical_cast library, or as a separate conversion
I would add them the Boost Numeric Conversion library as these functions
take in account only numeric types or Create a new
-- View this message in context: http://boost.2283326.n4.nabble.com/Checking-interest-in-to-string-functions-tp3858729p3859774.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk