miloyip/nativejson-benchmark

‘MemoryStatFree(void*&)’ is ambiguous

onurdolu opened this issue · 0 comments

Getting below error!!!

In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/xmmintrin.h:34:0,
from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:31,
from /usr/include/x86_64-linux-gnu/c++/4.9/bits/opt_random.h:33,
from /usr/include/c++/4.9/random:50,
from /usr/include/c++/4.9/bits/stl_algo.h:66,
from /usr/include/c++/4.9/algorithm:62,
from ../../thirdparty/ULib/include/ulib/container/vector.h:20,
from ../../thirdparty/ULib/include/ulib/container/hash_map.h:17,
from ../../thirdparty/ULib/include/ulib/json/value.h:17,
from ../../src/tests/ULibtest.cpp:16:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/mm_malloc.h: In function ‘void _mm_free(void*)’:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/mm_malloc.h:54:12: error: call of overloaded ‘MemoryStatFree(void*&)’ is ambiguous
free (ptr);
^
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/mm_malloc.h:54:12: note: candidates are:
In file included from ../../src/tests/../test.h:3:0,
from ../../src/tests/ULibtest.cpp:1:
../../src/tests/../memorystat.h:134:13: note: void MemoryStatFree(void*)
extern void MemoryStatFree(void* ptr);
^
../../src/tests/../memorystat.h:156:17: note: void std::MemoryStatFree(void*)
inline void MemoryStatFree(void* ptr) {