1
0
Fork 0

patterns are a list

This commit is contained in:
Kevin Matz 2023-04-23 11:56:57 -04:00
parent 45a8c673f0
commit 76b8f974e7
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ bool Method::isContainer() const
/**
* @brief Method::dispatch
* @param address
* @param patterns
* @param msg
* @return
*/

View File

@ -48,7 +48,7 @@ void Server::dispatch(const std::shared_ptr<Message> msg)
switch (msg->address_pattern.at(0)) {
case '/':
{
std::vector<std::string> patterns;
std::list<std::string> patterns;
std::istringstream strm(msg->address_pattern);
strm.seekg(1); // skip leading '/'
for (std::string name; std::getline(strm, name, '/');)