Subject: Re: [boost] Review Request : Boost.Range Extension
From: Akira Takahashi (faithandbrave_at_[hidden])
Date: 2012-05-30 22:03:13


2012/5/31 Michel Morin <mimomorin_at_[hidden]>:
> I'm concerned about taking one-past-the-end pointer of non-array object.
> Is this guaranteed to work?
> If so, could you tell me which part of the Standard guarantee it?

standard part is follow:

5.7.4
For the purposes of these operators, a pointer to a nonarray object
behaves the same as a pointer to the first element of an array of
length one with the type of the object as its element type.