Skip to content

[pull] master from beyond-all-reason:master#27

Merged
pull[bot] merged 1 commit into
ExaDev:masterfrom
beyond-all-reason:master
Jul 10, 2026
Merged

[pull] master from beyond-all-reason:master#27
pull[bot] merged 1 commit into
ExaDev:masterfrom
beyond-all-reason:master

Conversation

@pull

@pull pull Bot commented Jul 10, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

str() was defined inline in the headers, which forced <format> onto every
translation unit that includes float3.h - i.e. most of the engine, plus
vendored targets (lua, luasocket) that pull it in transitively. That is a
lot of compile-time cost for a debug-only helper, and it means any target
touching float3.h must have the formatting library's headers available.

Move the three str() bodies into their .cpp files and drop <format> from
the headers (float3.h keeps <string> for the declaration). Now only the
three math .cpp files need <format>. Add the direct <format> include to the
two other live std::format users that were relying on the transitive pull
(UnsyncedGameCommands.cpp, DumpHistory.cpp).
@pull pull Bot locked and limited conversation to collaborators Jul 10, 2026
@pull pull Bot added the ⤵️ pull label Jul 10, 2026
@pull pull Bot merged commit 0ea0be0 into ExaDev:master Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant