diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ffd01b..13303e3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ nanoflann 1.4.4: UNRELEASED * Macros to avoid conflicts with X11 symbols. + * Inline an auxiliary example function in case users want to use it and include the file in multiple translation units (Closes [#182](https://github.com/jlblancoc/nanoflann/issues/182)). nanoflann 1.4.3: Released Jul 24, 2022 * Added flag SkipInitialBuildIndex to allow not wasting time building a tree when it will be loaded from a file later on ([PR #171](https://github.com/jlblancoc/nanoflann/pull/171)). diff --git a/examples/utils.h b/examples/utils.h index 530c90af..7a5000a0 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -204,7 +204,7 @@ void generateRandomPointCloud_Orient( } } -void dump_mem_usage() +inline void dump_mem_usage() { FILE* f = fopen("/proc/self/statm", "rt"); if (!f) return;