Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘MemoryStatFree(void*&)’ is ambiguous #83

Open
onurdolu opened this issue Apr 19, 2017 · 0 comments
Open

‘MemoryStatFree(void*&)’ is ambiguous #83

onurdolu opened this issue Apr 19, 2017 · 0 comments

Comments

@onurdolu
Copy link

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) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant