Skip to content

Commit 44c58f2

Browse files
author
thk123
committed
Fixed iterator in sharing node
The standard requires a non-const iterator for list::erase
1 parent a64de5f commit 44c58f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/sharing_node.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class sharing_nodet
220220
{
221221
containert &c=get_container();
222222

223-
for(typename containert::const_iterator it=c.begin();
223+
for(typename containert::iterator it=c.begin();
224224
it!=c.end(); it++)
225225
{
226226
const self_type &n=*it;

0 commit comments

Comments
 (0)