Skip to content

Support: Endian problems - #349

Merged
Kojoley merged 4 commits into
boostorg:developfrom
Kojoley:support-endian-problems
Mar 7, 2019
Merged

Support: Endian problems#349
Kojoley merged 4 commits into
boostorg:developfrom
Kojoley:support-endian-problems

Conversation

@Kojoley

@Kojoley Kojoley commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator
  • Fixed macro redefinition:
    • BOOST_MINIMAL_INTEGER_COVER_OPERATORS
    • BOOST_NO_IO_COVER_OPERATORS
    • BOOST_SPIRIT_ENDIAN_NO_CTORS
    • BOOST_SPIRIT_ENDIAN_DEFAULT_CONSTRUCT
  • Undef internal macros.
  • Fixed-width integer detection.

Closes #348

@Kojoley

Kojoley commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator Author

Also I am not sure why Spirit still does not use Boost.Endian (but I dislike that its io operators cannot be turned off, Spirit one does not have them).

@djowel

djowel commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator

We should probably use Boost.Endian if we can. Does the io operators affect Spirit use?

@Kojoley

Kojoley commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator Author

It only includes iosfwd so it should not hurt users.

@Kojoley

Kojoley commented Jan 7, 2018

Copy link
Copy Markdown
Collaborator Author

Boost.Endian is implemented with bit shifts on a passed type (only recently it started to cast signed to unsigned before shifting :O). Because of that float types are not supported and we cannot simply switch Karma and Qi to it.

@Kojoley
Kojoley force-pushed the support-endian-problems branch 4 times, most recently from 0656dcb to 9d9b398 Compare March 7, 2019 20:04
@Kojoley
Kojoley force-pushed the support-endian-problems branch from 9d9b398 to 9e64877 Compare March 7, 2019 20:06
@Kojoley
Kojoley merged commit 38ec0cc into boostorg:develop Mar 7, 2019
@Kojoley
Kojoley deleted the support-endian-problems branch March 7, 2019 23:14
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