Skip to content

fix: add missing #include <chrono> for std::chrono::high_resolution_c…#17

Open
kotegc wants to merge 1 commit into
sxyu:masterfrom
kotegc:master
Open

fix: add missing #include <chrono> for std::chrono::high_resolution_c…#17
kotegc wants to merge 1 commit into
sxyu:masterfrom
kotegc:master

Conversation

@kotegc

@kotegc kotegc commented Jul 4, 2026

Copy link
Copy Markdown

…lock

util.cpp's get_rng() calls std::chrono::high_resolution_clock::now() but sdf_util.hpp (its only relevant include chain) never includes . This compiled for years because / used to transitively leak on most standard libraries; newer MSVC STL releases tightened header hygiene and stopped leaking it, causing a hard build failure on Windows with recent toolsets (error C2039: 'high_resolution_clock' is not a member of 'std::chrono'). One-line fix, no behavior change.

…lock

util.cpp's get_rng() calls std::chrono::high_resolution_clock::now() but
sdf_util.hpp (its only relevant include chain) never includes <chrono>.
This compiled for years because <random>/<thread> used to transitively
leak <chrono> on most standard libraries; newer MSVC STL releases tightened
header hygiene and stopped leaking it, causing a hard build failure on
Windows with recent toolsets (error C2039: 'high_resolution_clock' is not
a member of 'std::chrono'). One-line fix, no behavior change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant