-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace LuaVariant with std::variant #3981
Conversation
d5fcf67
to
97efb56
Compare
I agree with using std::variant, but I'd love for it to be wrapped in a structure with the following methods: |
27d6377
to
925e00c
Compare
I saw an inconsistency, some names as |
A rewrite of the code to fix this inconsistent naming is long overdue, but should be a separate PR. |
I think you just have to add a TAB to the content of the class {...} and it will be ready |
is this right? |
No, it should be #1481 Agh, off by one errors... |
(cherry picked from commit 1cef0ea)
Pull Request Prelude
Changes Proposed
Replaces custom
LuaVariant
class withstd::variant
with the same types. This reduces memory size of each instance from 56 bytes to 40 bytes, and allows for some code cleaning.Issues addressed:
Closes #1481