3 ms·
The #define private public hack doesn't work reliably in modern C++ compilers and violates the One Definition Rule, potentially causing undefined behavior and h
by ethan_smith 1y ago
The #define private public hack doesn't work reliably in modern C++ compilers and violates the One Definition Rule, potentially causing undefined behavior and hard-to-debug errors.
- CodeHz 1y agoActually, it won't compile in msvc (the linking phase, to be precise), MSVC uses different names for methods with different visibilities