On Jun 19, 5:57 pm, Ben <gro...@theyoungfamily.co.uk> wrote:
> Now the array binds to the new copy version, and the check_iterator
> gives an error during the copy as it thinks the array is only one byte
It's not that it thinks it is one byte long. It is one byte long.
Accessing an array past the end is undefined behaviour.
> The question is, is this std::copy overload allowed by the standard?
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]