Skip to content

Commit

Permalink
fix "type ‘struct uint128’ violates the C++ One Definition Rule" warning
Browse files Browse the repository at this point in the history
should also fix issues #32 and #33

The class uint128 has two possible implementations, depending on the macro __SIZEOF_INT128__. Though, unit tests where designed to test always the implementation that is picked when __SIZEOF_INT128__ is undefined. Undefining the macro __SIZEOF_INT128__ can lead to violation of the C++ One Definition Rule in unit tests. The unit tests and the implementation of the class uint128 were revised to test always both possible implementations without violating the One Definition Rule.
  • Loading branch information
rabauke committed Sep 2, 2024
1 parent ef2cfa5 commit bb7f1ea
Show file tree
Hide file tree
Showing 2 changed files with 906 additions and 829 deletions.
Loading

0 comments on commit bb7f1ea

Please sign in to comment.