-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incompatibility with CppUTest MemoryLeakDecector Malloc Macros #39
Labels
bug
Something isn't working
Comments
The patch for this is very small. Possibly the addition of a header on top of this?
|
addition header for nameof_type_rtti? |
Probably don't need the addition of a header for that change |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The library makes use of
std::free
which interferes with the way cpputest uses define macros to override the instances of free (see https://github.com/cpputest/cpputest/blob/master/include/CppUTest/MemoryLeakDetectorMallocMacros.h#L39). This will cause compilation errors to complain that std::cpputest_free_location doesn't exist (which it doesn't in that namespace).Looking into seeing where the fix should go (here or a in CppUTest) the easiest is definitely here. So I looked to the implemenations to see if I could provide some evidence that dropping the
std::
prefix was valid.Looking into the implemenations for
__cxa_demangle
use (see https://github.com/gcc-mirror/gcc/blob/16e2427f50c208dfe07d07f18009969502c25dc8/libiberty/cp-demangle.c#L6496). They seem to use the unprefixed variant.The text was updated successfully, but these errors were encountered: