fix ambiguous call to boost::bind (with VS 2012, Boost 1.55)
parent
d623f80719
commit
37460d4bba
|
|
@ -110,16 +110,16 @@ bool LabeledSymbol::operator!=(gtsam::Key comp) const {
|
||||||
static LabeledSymbol make(gtsam::Key key) { return LabeledSymbol(key);}
|
static LabeledSymbol make(gtsam::Key key) { return LabeledSymbol(key);}
|
||||||
|
|
||||||
boost::function<bool(gtsam::Key)> LabeledSymbol::TypeTest(unsigned char c) {
|
boost::function<bool(gtsam::Key)> LabeledSymbol::TypeTest(unsigned char c) {
|
||||||
return bind(&LabeledSymbol::chr, bind(make, _1)) == c;
|
return boost::bind(&LabeledSymbol::chr, boost::bind(make, _1)) == c;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::function<bool(gtsam::Key)> LabeledSymbol::LabelTest(unsigned char label) {
|
boost::function<bool(gtsam::Key)> LabeledSymbol::LabelTest(unsigned char label) {
|
||||||
return bind(&LabeledSymbol::label, bind(make, _1)) == label;
|
return boost::bind(&LabeledSymbol::label, boost::bind(make, _1)) == label;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::function<bool(gtsam::Key)> LabeledSymbol::TypeLabelTest(unsigned char c, unsigned char label) {
|
boost::function<bool(gtsam::Key)> LabeledSymbol::TypeLabelTest(unsigned char c, unsigned char label) {
|
||||||
return bind(&LabeledSymbol::chr, bind(make, _1)) == c &&
|
return boost::bind(&LabeledSymbol::chr, boost::bind(make, _1)) == c &&
|
||||||
bind(&LabeledSymbol::label, bind(make, _1)) == label;
|
boost::bind(&LabeledSymbol::label, boost::bind(make, _1)) == label;
|
||||||
}
|
}
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue