class A
{
bool OutofRange(string& a, string& b, string c);
void Get(vector <string>& str, string& a, string& b);
}
void A::Get(vector <string>& str, string& a, string& b)
{
str.erase(
std::remove_if (str.begin(), str.end(), BOOST_BIND(&A::OutOfRange, a, b, _1)),
str.end()
);
}
Ich bin immer Fehler wie:boost binden Kompilierungsfehler
Error 7 error C2825: 'F': must be a class or namespace when followed by '::' File:bind.hpp
Error 8 error C2039: 'result_type' : is not a member of '`global namespace'' t:\3rdparty\cpp\boost\boost-1.38.0\include\boost\bind.hpp 67
Kann mir jemand sagen, was ich falsch mache?
Beitrag einige echte Code fehlt. Z.B. 'A :: Get()' Definition fehlt Rückgabetyp. – dirkgently
Ich schrieb meinen Code auf der Grundlage dieser Antwort hier ::: http://stackoverflow.com/questions/1677211/sort-using-boostbind/1677302#1677302 – aajkaltak