Skip to content

C++14 support: remove usage of structure bindings from generated code - #1815

Merged
pwrobeldev merged 2 commits into
masterfrom
pwrobeldev/return-support-of-cpp14-structure-bindings
Aug 31, 2026
Merged

C++14 support: remove usage of structure bindings from generated code#1815
pwrobeldev merged 2 commits into
masterfrom
pwrobeldev/return-support-of-cpp14-structure-bindings

Conversation

@pwrobeldev

@pwrobeldev pwrobeldev commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

---------- Problem contex ----------
The generated C++ code and bindings must be compilable with C++14.
The code related to JNI layer had been using structure bindings that is
a feature introduced in C++17.

---------- Implemented fix ----------
Replaced the structure bindings with call to std::get() to achieve similar
behavior. This ensures that the code is compatible with C++14.

@pwrobeldev
pwrobeldev requested a review from Hsilgos August 24, 2026 14:12
Hsilgos
Hsilgos previously approved these changes Aug 28, 2026
The generated JNI layer used C++17 feature
called structure binding. To restore compilation
with C++14 this commit introduces usage of std::get().

Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
Signed-off-by: Patryk Wrobel <183546751+pwrobeldev@users.noreply.github.com>
@pwrobeldev
pwrobeldev force-pushed the pwrobeldev/return-support-of-cpp14-structure-bindings branch from f67c976 to c5c7008 Compare August 31, 2026 13:40
@pwrobeldev
pwrobeldev merged commit e268175 into master Aug 31, 2026
20 checks passed
@pwrobeldev
pwrobeldev deleted the pwrobeldev/return-support-of-cpp14-structure-bindings branch August 31, 2026 14:33
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