Internals: Allow VL_DANGLING on pointer const.

This commit is contained in:
Wilson Snyder 2020-05-29 18:31:53 -04:00
parent 4a8c7e869f
commit 4cfa3f879a

View File

@ -155,7 +155,7 @@
///< After e.g. delete, set variable to NULL to indicate must not use later
# define VL_DANGLING(var) \
do { \
(var) = NULL; \
*const_cast<const void**>(reinterpret_cast<const void* const*>(&var)) = NULL; \
} while (false)
#endif