https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279443
--- Comment #13 from Paul Floyd <[email protected]> --- (In reply to Mark Millard from comment #9) (In reply to Mark Millard from comment #9) The original comment said > It should be possible to get an address of the end of the std::vector object, > even though it doesn't point to an allocated byte. This is precisely the purpose of std::end() (or std::vector::end(), std::end() has the advantage that it will also work with raw arrays). > I kept to a fairly minimal > style change compared to &buf[cb] and what it means in C and > some parts of C++ for my test example, using notation showing > specific distinctions that other C++ notations could hide and > so be less clear. As I see it you were using idiomatic C to show how to do the wrong thing rather than using idiomatic C++ to do the right thing. It looks like Yuri is getting things sorted out. -- You are receiving this mail because: You are the assignee for the bug.
