Boost logo

Boost :

From: Alexander Nasonov (alnsn_at_[hidden])
Date: 2007-05-16 06:21:20


16.05.07, 13:28, Phil Endecott <spam_from_boost_dev_at_[hidden]>:

> Q: What does lexical_cast<string> of an int8_t or uint8_t not do what I expect?
> A: As above, note that int8_t and uint8_t are actually chars and are
> formatted as such. To avoid this, cast to an integer type first: lexical_cast<string>(static_cast<int>(n)).
Looks good. I'll add it.

> Following are some minor edits to your text:
> Q: Why does lexical_cast<int8_t>("127") throw bad_lexical_cast?
> commitee --> committee
> greate --> great
Thanks.

-- 
Alexander Nasonov

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