We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba550a commit 1196477Copy full SHA for 1196477
1 file changed
include/momo/UserSettings.h
@@ -171,4 +171,5 @@
171
#define MOMO_COPY_MEMORY(dst, src, size) std::memcpy(dst, src, size)
172
173
#define MOMO_CAST_POINTER(ResObject, ptr, isWithinLifetime, isSingleObject) \
174
- ((isWithinLifetime) ? std::launder(reinterpret_cast<ResObject*>(ptr)) : reinterpret_cast<ResObject*>(ptr))
+ ((isWithinLifetime && isSingleObject) ? std::launder(reinterpret_cast<ResObject*>(ptr)) \
175
+ : reinterpret_cast<ResObject*>(ptr))
0 commit comments