emilk / emilk/Configuru

The "free" private method interferes with _CRTDBG_MAP_ALLOC

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
144
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Visual Studio allows for the `_CRTDBG_MAP_ALLOC` macro to be defined, which replaces `malloc` and `free` with Windows' own macros for detecting memory leaks. As the preprocessor attempts to replace the `free` word in `void Config::free()`, this results in an error. What I personally did was rename the method to `void Config::do_free()`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.