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:
parent
39d196d348
commit
21c10669c1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user