From: g0dil Date: Tue, 23 Jun 2009 14:17:13 +0000 (+0000) Subject: Patch boost to fix Boost-1.33.1 interoperability problem X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=c5d0e492a701a054b1f3d56e128b2c4675b0d50b;p=senf.git Patch boost to fix Boost-1.33.1 interoperability problem git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1235 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Utils/Console/LineEditor.cc b/Utils/Console/LineEditor.cc index 512ab6f..00faa8b 100644 --- a/Utils/Console/LineEditor.cc +++ b/Utils/Console/LineEditor.cc @@ -146,7 +146,7 @@ completePath(term::LineEditor & editor, unsigned & b, unsigned & e, std::string { std::string const & t (editor.text()); // Search backward from e finding the longest valid path. This does *not* accept all valid - // path's, only those without empedded white-space. However, this is only for completion so + // path's, only those without embedded white-space. However, this is only for completion so // it's ok. if (bparent().get()); if (parent) dir = parent; - basePath += "../"; + prefix += "../"; } else if (*i == WordToken(".")) - basePath += "./"; + prefix += "./"; else { if (dir->hasChild(i->value())) { try { @@ -205,7 +204,7 @@ completePath(term::LineEditor & editor, unsigned & b, unsigned & e, std::string catch (std::bad_cast &) { return; } - basePath += i->value() + "/"; + prefix += i->value() + "/"; } else { DirectoryNode::ChildrenRange cs (dir->completions(i->value())); @@ -214,7 +213,7 @@ completePath(term::LineEditor & editor, unsigned & b, unsigned & e, std::string if (!node.isDirectory()) return; dir = static_cast(&node); - basePath += cs.begin()->first + "/"; + prefix += cs.begin()->first + "/"; } else return; @@ -222,7 +221,6 @@ completePath(term::LineEditor & editor, unsigned & b, unsigned & e, std::string } DirectoryNode::ChildrenRange cs (dir->completions(i->value())); - prefix = basePath; for (DirectoryNode::ChildrenRange::iterator j (cs.begin()); j != cs.end(); ++j) completions.push_back(j->first + (j->second->followLink().isDirectory() ? "/" : " ")); } diff --git a/boost/multi_index/composite_key.hpp b/boost/multi_index/composite_key.hpp index 12e0605..d388f64 100644 --- a/boost/multi_index/composite_key.hpp +++ b/boost/multi_index/composite_key.hpp @@ -14,7 +14,7 @@ #endif #include /* keep it first to prevent nasty warns in MSVC */ -#include +#include #include #include #include