Skip to content

Conversation

VestniK
Copy link
Contributor

@VestniK VestniK commented Mar 13, 2023

We are using patched libc++ which uses raw pointers for vector itrators to improve code compilation speed. This commit fixed two compilation issues in toml11:

  • location::const_iterator deinition assumes that vector const_iterator is struct or class type rather than raw pointer.
  • const const_itetr foo() triggers -Wignored-qualifiers for primitive types and void which breaks -Wextra -Werror compilation.

@VestniK
Copy link
Contributor Author

VestniK commented Mar 15, 2023

I'll take a look on failed builds during this week.

Copy link
Owner

@ToruNiina ToruNiina left a comment

Choose a reason for hiding this comment

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

Nice catch.

The cause of the failure seems to be a tiny error.

I will merge this after it passes CI.

We are using patched libc++ which uses raw pointers for vector itrators
to improve code compilation speed. This commit fixed two compilation
issues in toml11:
 * location::const_iterator deinition assumes that vector const_iterator
   is struct or class type rather than raw pointer.
 * `const const_itetr foo()` triggers `-Wignored-qualifiers` for primitive
   types and `void` which breaks `-Wextra -Werror` compilation.
Copy link
Owner

@ToruNiina ToruNiina left a comment

Choose a reason for hiding this comment

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

LGTM.

@ToruNiina ToruNiina merged commit d47fe78 into ToruNiina:master Mar 17, 2023
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