build: Fix compile error in Smudge.h with docker-build#2701
Conversation
… docker-build This short fix gets the build working again, and should close out issue TheSuperHackers#2674
|
| Filename | Overview |
|---|---|
| Core/GameEngine/Include/GameClient/Smudge.h | Adds missing #include <Utility/hash_map_adapter.h> so std::hash_map resolves on modern GCC/Clang (docker) compilers that lack <hash_map>. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Smudge.h included"] --> B{"Compiler / STL environment?"}
B -->|"USING_STLPORT or MSVC < 13"| C["hash_map_adapter.h → #include <hash_map>"]
B -->|"Modern GCC / Clang (Docker)"| D["hash_map_adapter.h → std::hash_map = std::unordered_map alias"]
C --> E["std::hash_map available ✓"]
D --> E
E --> F["SmudgeSet::SmudgeIdToPtrMap compiles successfully"]
Reviews (2): Last reviewed commit: "Following the suggestion from @xezon, ma..." | Re-trigger Greptile
This short fix gets the build working again, and should close out issue #2674