[cpp-sp] branch main updated: Try and fix some older compiler issues.

Scott Cantor cantor.2 at osu.edu
Mon Oct 20 12:53:31 UTC 2025


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=25dc6b95666f724d8515a725ebc11fa887fa917e

The following commit(s) were added to refs/heads/main by this push:
     new 25dc6b95 Try and fix some older compiler issues.
25dc6b95 is described below

commit 25dc6b95666f724d8515a725ebc11fa887fa917e
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Oct 20 08:53:25 2025 -0400

    Try and fix some older compiler issues.
---
 shibsp/logging/impl/AbstractLoggingService.cpp | 3 ++-
 tests/util/ReloadableXMLFileTests.cpp          | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/shibsp/logging/impl/AbstractLoggingService.cpp b/shibsp/logging/impl/AbstractLoggingService.cpp
index ef6feb05..e10da0ee 100644
--- a/shibsp/logging/impl/AbstractLoggingService.cpp
+++ b/shibsp/logging/impl/AbstractLoggingService.cpp
@@ -120,7 +120,8 @@ Category& AbstractLoggingService::getCategory(const std::string& name)
     auto iter = m_priorityMap.find(name);
     Priority::Value prio = iter != end(m_priorityMap) ? iter->second : m_defaultPriority;
     
-    auto map_insert_result = m_categoryMap.insert({name, unique_ptr<Category>(new CategoryImpl(*this, name, prio))});
+    auto map_insert_result = m_categoryMap.insert(
+        make_pair(name, unique_ptr<Category>(new CategoryImpl(*this, name, prio))));
     // The insert result is a pair<iterator,bool> and the map's value is a pair<key.value>, thus....
     return *(map_insert_result.first->second.get());
 }
diff --git a/tests/util/ReloadableXMLFileTests.cpp b/tests/util/ReloadableXMLFileTests.cpp
index aef43de1..e50537e1 100644
--- a/tests/util/ReloadableXMLFileTests.cpp
+++ b/tests/util/ReloadableXMLFileTests.cpp
@@ -25,6 +25,8 @@
 #include <boost/test/unit_test.hpp>
 #include <boost/property_tree/xml_parser.hpp>
 
+#include <mutex>
+
 #ifdef WIN32
 #include <Windows.h>
 #endif // WIN32

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list