Commit e5cae846 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac846] Use correct iterator

It used iterator with different comparator. Glibc stl with debug mode
rejected this while trying to compile it.
parent c32718be
......@@ -228,8 +228,9 @@ MessageRenderer::writeName(const Name& name, const bool compress) {
name.toWire(impl_->nbuffer_);
unsigned int i;
std::set<NameCompressNode>::const_iterator notfound = impl_->nodeset_.end();
std::set<NameCompressNode>::const_iterator n = notfound;
std::set<NameCompressNode, NameCompare>::const_iterator notfound =
impl_->nodeset_.end();
std::set<NameCompressNode, NameCompare>::const_iterator n = notfound;
// Find the longest ancestor name in the rendered set that matches the
// given name.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment