Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify endian handling #737

Merged
merged 2 commits into from
Sep 18, 2024
Merged

simplify endian handling #737

merged 2 commits into from
Sep 18, 2024

Conversation

lemire
Copy link
Member

@lemire lemire commented Sep 18, 2024

Mostly, we just remove unnecessary lines of code.

@lemire lemire requested a review from anonrig September 18, 2024 17:40
#else
std::cout << "You have litte-endian system." << std::endl;
#endif
if (std::endian::native == std::endian::big) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it matters/changes anything

Suggested change
if (std::endian::native == std::endian::big) {
if constexpr (std::endian::native == std::endian::big) {

@anonrig anonrig merged commit e730702 into main Sep 18, 2024
28 checks passed
@anonrig anonrig deleted the simplify_endian branch September 18, 2024 18:36
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.

2 participants