Boost logo

Boost :

From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2008-07-08 19:39:46


Steven Ross wrote:
>>>> - Does it work with uint64_t? I see some variables declared as 'long',
>>>> which often can't store a uint64_t.

> I was suggesting using an int64_t
> The problem is that I need to use the return type of the user's >> method

I think it's reasonable to assume that T::operator>>(int) returns T,
for integer and integer-like classes. (Can anyone think of any
exceptions to that? Has anyone defined an integer-like concept that
covers this yet?)

Hence my comment about using the iterator::value_type:
>> Why not just use Iterator::value_type (or whatever it's called; or some
>> iterator_traits thing) everywhere?

Phil.


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