Skip to content

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
@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.

3 participants