Skip to content

Commit

Permalink
Explicit overload added
Browse files Browse the repository at this point in the history
  • Loading branch information
BenHanson committed May 5, 2024
1 parent fcf7b25 commit 2d2d135
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/lexertl/rules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,14 @@ namespace lexertl
}

// Add rule to INITIAL
// Separate overloads to support python bindings
void push(const rules_char_type* regex_, const id_type id_)
{
push(string(regex_), id_, npos());
}

void push(const rules_char_type* regex_, const id_type id_,
const id_type user_id_ = npos())
const id_type user_id_)
{
push(string(regex_), id_, user_id_);
}
Expand Down

0 comments on commit 2d2d135

Please sign in to comment.