Skip to content

serialize std::chrono::duration<> as nanoseconds#2

Merged
alexisji merged 1 commit intotripoli5-deps:masterfrom
marcosbento:serialize_std_duration_nanoseconds
Feb 19, 2026
Merged

serialize std::chrono::duration<> as nanoseconds#2
alexisji merged 1 commit intotripoli5-deps:masterfrom
marcosbento:serialize_std_duration_nanoseconds

Conversation

@HunterBelanger
Copy link
Copy Markdown

See #869 on the upstream. Will ensure that an std::chrono::duration serialized with one STL implementation can be accurately deserialized with another.

This ensures the same unit is used when encoding vs decoding, even
in the case where each endpoint uses different C++ standard libraries
that don't agree on the std::chrono::duration<> tick unit (e.g. GNU GCC
ibstdc++ uses nanoseconds, vs LLVM Clang libc++ uses microseconds).
@alexisji alexisji merged commit 6edd8cb into tripoli5-deps:master Feb 19, 2026
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.

3 participants