root dispatching doesn't pop the pattern list
This commit is contained in:
parent
6853a2af5c
commit
f72ca7e9f6
|
@ -118,7 +118,8 @@ bool Method::dispatch(std::list<std::string> patterns, const std::shared_ptr<Mes
|
|||
return false; // NO pattern to match
|
||||
|
||||
auto name = patterns.front();
|
||||
patterns.pop_front(); // take the first pattern
|
||||
if (!isRoot())
|
||||
patterns.pop_front(); // take the first pattern, if not the root method
|
||||
|
||||
if (patterns.empty()) // LEAF pattern
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue