1
0
mirror of https://github.com/OlafvdSpek/ctemplate.git synced 2025-09-28 19:05:49 +08:00

Don't dereference end()

This commit is contained in:
olafvdspek@gmail.com 2012-03-19 23:40:29 +00:00
parent 39d196d348
commit 21c10669c1

View File

@ -51,7 +51,7 @@ public:
template <class U>
str_ref_basic(const U& c)
{
assign(&*c.begin(), &*c.end());
assign(&*c.begin(), c.end() - c.begin() + &*c.begin());
}
str_ref_basic(const void* b, const void* e)