#include "lyx_forms.h"
-using lyx::support::contains_functor;
-using lyx::support::getStringFromVector;
-using lyx::support::isStrDbl;
+#include <boost/bind.hpp>
+
+using boost::bind;
-using std::bind2nd;
using std::string;
using std::vector;
+namespace lyx {
+
+using support::contains;
+using support::getStringFromVector;
+using support::isStrDbl;
+
+namespace frontend {
namespace {
vector<string> units_vec = getLatexUnits();
vector<string>::iterator ret =
remove_if(units_vec.begin(), units_vec.end(),
- bind2nd(contains_functor(), "%"));
+ bind(contains<char>, _1, '%'));
units_vec.erase(ret, units_vec.end());
string const units = getStringFromVector(units_vec, "|");
return LyXTabular::LAST_ACTION;
}
+
+} // namespace frontend
+} // namespace lyx