Avoid using std::format for github CI

This commit is contained in:
Guillaume Meunier
2023-12-16 14:16:48 +01:00
parent 08a66cba70
commit 4bbe9952cc
3 changed files with 14 additions and 6 deletions
+7 -2
View File
@@ -118,9 +118,14 @@ void avahi_publisher::client_callback(AvahiClient * s,
}
}
avahi_publisher::avahi_publisher(const char * name, std::string type, int port, std::vector<std::string> txt) :
name(avahi_strdup(name)), type(std::move(type)), port(port), txt(txt)
avahi_publisher::avahi_publisher(const char * name, std::string type, int port, const std::map<std::string, std::string>& txt) :
name(avahi_strdup(name)), type(std::move(type)), port(port)
{
for(const auto& [key, value]: txt)
{
this->txt.push_back(key + "=" + value);
}
avahi_poll = avahi_simple_poll_new();
int error;