Skip to content

Guard use of char8_t in concepts.hpp with if defined(__cpp_char8_t) - #330

Open
jonesmz wants to merge 1 commit into
boostorg:developfrom
jonesmz:patch-1
Open

jonesmz wants to merge 1 commit into
boostorg:developfrom
jonesmz:patch-1

Conversation

@jonesmz

@jonesmz jonesmz commented Jul 13, 2026

Copy link
Copy Markdown

No description provided.

@andreasbuhr

Copy link
Copy Markdown
Contributor

Can you explain when this is necessary? Which compiler does support concepts but does not support char8_t?

@jonesmz

jonesmz commented Jul 29, 2026

Copy link
Copy Markdown
Author

Both MSVC and Clang (I assume GCC as well) allow you to disable char8_t with CLI switches.

  • MSVC: /Zc:char8_t-
  • Clang: -fno-char8_t

My employers codebase does so, and won't be changing any time soon. We compile with C++23, but char8_t disabled.

This patch is necessary to compile our code against boost::parser.

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