Description: Fix build failure with libstdc++ 15 (GCC 15) due to explicit
 default constructor of Ogre::STLAllocator.
 libstdc++ 15 values-initializes the node allocator stored in
 _Hashtable_ebo_helper through copy-list-initialization of the member
 "_M_alloc{}". Copy-list-initialization of a class whose default constructor
 is explicit is ill-formed, so every std::unordered_* container using
 Ogre::STLAllocator (via Ogre/ogrestd/unordered_map.h) fails to compile with
 "converting to ... from initializer list would use explicit constructor".
 Dropping "explicit" from the default constructor keeps the same semantics
 while making the allocator usable by the standard library again.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-15

--- ogre-next-2.3.3+dfsg.orig/OgreMain/include/OgreMemorySTLAllocator.h
+++ ogre-next-2.3.3+dfsg/OgreMain/include/OgreMemorySTLAllocator.h
@@ -100,7 +100,10 @@ namespace Ogre
         };
 
         /// ctor
-        inline explicit STLAllocator()
+        /// Must not be explicit: libstdc++ value-initializes the node allocator
+        /// through copy-list-initialization (e.g. _Hashtable_ebo_helper's
+        /// "_M_alloc{}" member), which is ill-formed with an explicit default ctor.
+        inline STLAllocator()
         { }
 
         /// dtor

