refactor: improve type extensibility and its safety (#348)

This commit is contained in:
Stanislav Angelovič authored and GitHub committed 2023-08-09 12:39:16 +02:00
1 parent 8728653359
commit 3e84b254e9
8 files changed
+18 -13

No files matched your search

+2 -2
View File
@@ -427,8 +427,8 @@ int main(int argc, char *argv[])
while (!stopClients)
{
std::map<std::string, sdbus::Variant> param;
param["key1"] = "sdbus-c++-stress-tests";
param["key2"] = ++localCounter;
param["key1"] = sdbus::Variant{"sdbus-c++-stress-tests"};
param["key2"] = sdbus::Variant{++localCounter};
concatenator.concatenate(param);