Skip to content

[C++] mark a generated function SBE_CONSTEXPR (#1055)#1083

Merged
vyazelenko merged 2 commits intoaeron-io:masterfrom
aschw:cpp-codegen-add-static-keywords
Mar 28, 2026
Merged

[C++] mark a generated function SBE_CONSTEXPR (#1055)#1083
vyazelenko merged 2 commits intoaeron-io:masterfrom
aschw:cpp-codegen-add-static-keywords

Conversation

@aschw
Copy link
Copy Markdown
Contributor

@aschw aschw commented Aug 26, 2025

Add some missing SBE_CONSTEXPR to the C++ generated code.

@aschw aschw force-pushed the cpp-codegen-add-static-keywords branch from d7e3e00 to 08db44f Compare August 27, 2025 16:41
endif (NOT CMAKE_BUILD_TYPE)

if (NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why changed to C++ 14?
We can't accept this change, because there are existing customers on older C++ versions.

@aschw
Copy link
Copy Markdown
Contributor Author

aschw commented Sep 4, 2025

C++14 is required for more complex constsxpr function bodies (e.g. variable definition and array subscripting).

@aschw aschw force-pushed the cpp-codegen-add-static-keywords branch from bec1cdd to 248eba4 Compare March 28, 2026 13:45
@vyazelenko vyazelenko closed this Mar 28, 2026
@vyazelenko vyazelenko reopened this Mar 28, 2026
@aschw aschw requested a review from vyazelenko March 28, 2026 14:16
Copy link
Copy Markdown
Contributor

@vyazelenko vyazelenko left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for your contribution!

@vyazelenko vyazelenko merged commit 5cc53ab into aeron-io:master Mar 28, 2026
37 checks passed
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