Skip to content

Commit

Permalink
Do not use UnorderedMap in PropertySpecification, it's not stable in …
Browse files Browse the repository at this point in the history
…MSVC too.
  • Loading branch information
SpartanJ committed Jan 25, 2025
1 parent c339914 commit 0f4af5c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/eepp/ui/css/propertyspecification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,8 @@ class EE_API PropertySpecification {
protected:
friend class PropertyDefinition;

// Investigate why robin_hood::unordered_flat_map fails with wasm build!
#if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN
std::unordered_map<Uint32, std::shared_ptr<PropertyDefinition>> mProperties;
std::unordered_map<Uint32, std::shared_ptr<ShorthandDefinition>> mShorthands;
#else
UnorderedMap<Uint32, std::shared_ptr<PropertyDefinition>> mProperties;
UnorderedMap<Uint32, std::shared_ptr<ShorthandDefinition>> mShorthands;
#endif

const PropertyDefinition* addPropertyAlias( Uint32 aliasId, const PropertyDefinition* propDef );
};
Expand Down

0 comments on commit 0f4af5c

Please sign in to comment.