Skip to content
Snippets Groups Projects
Commit 394bf7af authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Revert "Set regex type to basic POSIX"

  This reverts commit 05ed63f9.
  New regexp type does not accept empty regexp.
parent df51164a
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,6 @@ namespace hpp {
}
namespace {
boost::regex::flag_type regex_type = boost::regex_constants::basic; //
typedef std::size_t index_t;
typedef std::vector <index_t> IndexV_t;
typedef std::list <index_t> IndexL_t;
......@@ -768,11 +767,11 @@ namespace hpp {
{
assert(r.grippers_.size() == r.handles_.size());
for (std::size_t j = 0; j < r.grippers_.size(); ++j) {
boost::regex gripper (r.grippers_[j], regex_type);
boost::regex gripper (r.grippers_[j]);
for (std::size_t i = 0; i < res.nG; ++i) {
if (boost::regex_match(res.gs[i]->name(), gripper)) {
assert(handles[i].empty() && "Two gripper regex match the different gripper names.");
handles[i].assign(r.handles_[j], regex_type);
handles[i] = r.handles_[j];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment