Proposal: Require C++17 for embind

20 views
Skip to first unread message

Brendan Dahl

unread,
Aug 1, 2025, 7:25:53 PMAug 1
to emscripte...@googlegroups.com

Hi everyone,

I would like to propose that we consider moving the minimum required C++ standard for the embind library to C++17.

Embind's implementation makes heavy use of C++ templates. While it currently supports C++11, there have been significant improvements in C++17 that are particularly beneficial for template metaprogramming. I think these new features could simplify the existing embind codebase, making it more readable, easier to maintain, and potentially simpler for new contributors to understand.

I wanted to start a discussion to see if there is anyone in the community who still requires C++11 support for their projects using embind and would be adversely affected by this change.

Looking forward to your feedback.

I've also posted this in the emscripten issue tracker:
https://github.com/emscripten-core/emscripten/issues/24850

Thanks,

Brendan

Stephan Bergmann

unread,
Aug 2, 2025, 10:09:03 AMAug 2
to emscripte...@googlegroups.com
On 8/2/25 01:25, 'Brendan Dahl' via emscripten-discuss wrote:
> I would like to propose that we consider moving the minimum required C++
> standard for the embind library to C++17.

(Or even move to C++20? I was taken by a bit of surprise recently when
I found I couldn't use C++20 std::identity out of the box in
emscripten/val.h at
<https://github.com/emscripten-core/emscripten/pull/24790/files#diff-a4d0f5b7399c8f2c6bc57341cd28f1dd1bf690d19d6ad6e80056ebda98cfa7fdR261>
"[emval] Support dynamically-typed conversion to/from val".)

John Dallman

unread,
Aug 4, 2025, 6:51:27 AMAug 4
to emscripte...@googlegroups.com
I'd be happy with requiring C++17 or C++20, but I can't move to C++23 for several years. 

John

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/5a1d4b89-311d-41c4-a4ca-8b8e716930ea%40gmail.com.

キャロウ マーク

unread,
Aug 4, 2025, 7:48:13 AMAug 4
to emscripte...@googlegroups.com


> On Aug 4, 2025, at 19:51, John Dallman <jgdats...@gmail.com> wrote:
>
> I'd be happy with requiring C++17 or C++20, but I can't move to C++23 for several years.
>

Please don’t go any more recent than c++17.

Regards

-Mark

signature.asc
Reply all
Reply to author
Forward
0 new messages