From dcea48fcee9217992b0f304ab1691f9996ce60e3 Mon Sep 17 00:00:00 2001 From: Dennis Klein Date: Fri, 13 Jun 2025 08:17:25 +0200 Subject: [PATCH] fix: parse errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` /test/memory_resources/_memory_resources.cxx: In member function ‘virtual void {anonymous}::MemoryResources_allocator_Test::TestBody()’: /test/memory_resources/_memory_resources.cxx:104:12: error: parse error in template argument list 104 | config.SetProperty("session", to_string(session)); | ^~~~~~~~~~~~~~~~~~~ /test/memory_resources/_memory_resources.cxx:104:31: error: no matching function for call to ‘fair::mq::ProgOptions::SetProperty< >(const char [8], std::string)’ 104 | config.SetProperty("session", to_string(session)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/dklein/projects/FairMQ2/test/memory_resources/_memory_resources.cxx:11: /fairmq/ProgOptions.h:269:6: note: candidate: ‘template void fair::mq::ProgOptions::SetProperty(const std::string&, T)’ 269 | void fair::mq::ProgOptions::SetProperty(const std::string& key, T val) | ^~~~ /fairmq/ProgOptions.h:269:6: note: template argument deduction/substitution failed: /test/memory_resources/_memory_resources.cxx:104:31: error: template argument 1 is invalid 104 | config.SetProperty("session", to_string(session)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /test/memory_resources/_memory_resources.cxx: In member function ‘virtual void {anonymous}::MemoryResources_getMessage_Test::TestBody()’: /test/memory_resources/_memory_resources.cxx:132:12: error: parse error in template argument list 132 | config.SetProperty("session", to_string(session)); | ^~~~~~~~~~~~~~~~~~~ /test/memory_resources/_memory_resources.cxx:132:31: error: no matching function for call to ‘fair::mq::ProgOptions::SetProperty< >(const char [8], std::string)’ 132 | config.SetProperty("session", to_string(session)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /fairmq/ProgOptions.h:269:6: note: candidate: ‘template void fair::mq::ProgOptions::SetProperty(const std::string&, T)’ 269 | void fair::mq::ProgOptions::SetProperty(const std::string& key, T val) | ^~~~ /fairmq/ProgOptions.h:269:6: note: template argument deduction/substitution failed: /test/memory_resources/_memory_resources.cxx:132:31: error: template argument 1 is invalid 132 | config.SetProperty("session", to_string(session)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` --- test/memory_resources/_memory_resources.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/memory_resources/_memory_resources.cxx b/test/memory_resources/_memory_resources.cxx index 1f6b2e5c..a8fe8004 100644 --- a/test/memory_resources/_memory_resources.cxx +++ b/test/memory_resources/_memory_resources.cxx @@ -16,6 +16,7 @@ #include #include +#include #include namespace @@ -101,7 +102,7 @@ TEST(MemoryResources, allocator) size_t session{tools::UuidHash()}; ProgOptions config; - config.SetProperty("session", to_string(session)); + config.SetProperty("session", to_string(session)); FactoryType factoryZMQ = TransportFactory::CreateTransportFactory("zeromq", fair::mq::tools::Uuid(), &config); @@ -129,7 +130,7 @@ TEST(MemoryResources, getMessage) size_t session{tools::UuidHash()}; ProgOptions config; - config.SetProperty("session", to_string(session)); + config.SetProperty("session", to_string(session)); config.SetProperty("shm-monitor", true); FactoryType factoryZMQ = TransportFactory::CreateTransportFactory("zeromq", fair::mq::tools::Uuid(), &config);