Skip to content
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

server/util.cpp@196 ASSERT FAILED: sizeof(pMap->dataDesc[i].func) == sizeof(void *) #209

Open
a1batross opened this issue Mar 25, 2024 · 1 comment

Comments

@a1batross
Copy link
Contributor

a1batross commented Mar 25, 2024

Указатели на члены класса не обязательно равны указателям на void *.

Воспроизводится на 64-битной сборке под Linux.

Полагаю, можно воспроизвести на Windows с MSVC, поигравшись с флагами /vmg /vmm : https://learn.microsoft.com/en-us/cpp/build/reference/vmm-vms-vmv-general-purpose-representation?view=msvc-170

Немного размышлений на тему:
https://godbolt.org/z/f1qPv55Kq
https://devblogs.microsoft.com/oldnewthing/20040209-00/?p=40713

@SNMetamorph
Copy link
Owner

И вот встаёт вопрос, как это в сейвы записывать в портабельном виде, если у каждого компилятора своя реализация :/

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

No branches or pull requests

2 participants